I recently heard about JavaScript Object Notation (JSON), and after looking it up, it seems like it\'s becoming rather popular as an alternative to the Extensible Markup Lan
Advantages of XML
Near ubiquitous support in a wide array of languages and frameworks. More likely than not there's already a tool out there to help your extract information from an XML response.
It can adhere to a concrete schema if so you choose. Once it validates, you can say it's correct and start parsing.
Namespaces allow you to divide the XML.
Advantages of JSON
Lightweight in comparison to XML. Fewer characters = smaller time going through the internet tubes.
Easier to handle with Javascript if you need something for a web application.