|
|
|
|
|
by nonlogical
727 days ago
|
|
Out of curiosity, what are your top reasons to pick XML over JSON(+jsonschema) or Msgpack/Protobuf, as data interchange? I have come of age as a professional software engineer around the time when industry has started switching from XML to JSON, and as a consequence in the JSON camp, but I am always curious to hear out folks with a different opinion. |
|
I'm in the same boat, but I found XML has some nice properties that I sometimes miss in JSON, given that XML is used well ("correctly"), such as the differentiation of metadata (attributes) and data (nodes), namespaces, standard query languages, XSLT etc. (You can use XSLT on the web even.)
Think of all the custom, ad-hoc code that turns JSON into HTML vs having a declarative standardized way of doing so.
https://developer.mozilla.org/en-US/docs/Web/XSLT