3 ms·
If you believe that XML's information model maps onto "any other language" just as well as JSON, please show me native mapping/object support in XML and, conver
by corresation 13y ago
If you believe that XML's information model maps onto "any other language" just as well as JSON, please show me native mapping/object support in XML and, conversely which programming languages (besides XSLT) have mixed content and attributes.
You can serialize to/from XML in virtually any modern language. Not sure if you're seriously asking this, or what the limiter "native" is supposed to mean (beyond that JSON is JavaScript. But it isn't C#, and it isn't Python, and it isn't...).
How they use attributes or elements is context specific. Every feature and pattern doesn't apply to every use.
XML specification is ten times longer; it has dozens of sharp edges you have to memorize in order to use effectively.
No, you actually don't. You create an XSD of a simple layout (trivial, monkey work). That is what you serialize from/to. The universe of possibilities in XML is, again, utterly and absolutely irrelevant.
Seriously, JSON doesn't even have a DATE type. That is so fundamentally broken I don't even know where to start (Microsoft has their own mystical blend of date when they use JSON, for instance, incompatible with anything else).