How about XML vs JSON vs YAML?
the short answer i gues is theyre all doing the same thing in a different way. but when you talk of language integration, JSON works well with Javascript. YAML works without modification in Python and Ruby. XML i guess is generalized and interoperable with almost every language having xml libraries.