Possible Duplicate:
What are the pros and cons of XML and JSON?
I don't know of a web facing language that doesn't support both JSON and XML. So I'm sure this has nothing to do with serving different formats because of needs.
My guess is that people are still making new web services using XML because that's what they know, or the web service was built before JSON was well known. However, regardless of what I think...
Are there somethings that JSON can't do which is why people still use XML as the format for new things? I personally started with XML but when JSON came out I made the switch since:
- JSON is easier to process (a lot less rules about syntax)
- JSON is smaller (and bandwidth matters!)
Any answer that shows a XML fitting a API use-case better than JSON is good enough for me.