Data Exchange Format between Web Front End and Web Back End
To improve development efficiency of Web Application, we need to implement the parallel development between Web Front End and Web Back End. To achieve this goal, first we should determine the data exchange format between Web Front End and Web Back End. In this article, letís talk about some data exchange formats between them.
Common data exchange formats between Web Front End and Web Back End are as below:
XML stands for EXtensible Markup Language
XML is a markup language much like HTML
XML was designed to carry data, not to display data
XML tags are not predefined. You must define your own tags
XML is designed to be self-descriptive
XML is a W3C Recommendation
XML and JSON, both can be used as data exchange formats. Letís compare their main advantages and disadvantages between them.
XML is better for human reading than JSON.
XML is not lighter as JSON.
JSON is lighter than XML.
JSON is not better for human reading as XML.
In my opinion, JSON is a great data exchange format for Web Applications over browsers. It is not the question of XML vs. JSON. It is the question of When XML and When JSON.
From: Jacky Cui's Java Home: Data Exchange Format between Web Front End and Web Back End