Re: [xml-dev] How long before services sending/receiving XML mightneed replacement?
I have a somewhat different perspective, because of late I'm primarily in the RDF space and working as an inter-enterprise ontologist.
I've started taking the approach when advising clients to concentrate first on the ontology - the entities and relationships that make up the relevant business domain language, then to create multiple serializations for different targets.
If I'm putting together something that will need to be interpreted as a DOM (e.g., working within a browser using web components) then an XML-like language makes a lot of sense) - you can do things with DOMs that are very difficult to do with JSON.
I also think that XML is far better than JSON for working with NIEM and similar standards. If I'm just seeking or updating information, I'll usually use JSON and GraphQL on the front end, and RDF on the back end, with the GraphQL engine coupled to a SHACL bridge.
If I'm working on a data model I almost always start with Turtle to build up prototypes, then reverse engineer from there into SHACL, usually via SPARQL. The key thing in all cases is to make sure that the ontology is consistent between interactions.
JSON is a necessary evil because most programmers have been trained to NOT be systemic thinkers, but rather to concentrate on their own particular module or component. JSON fits this mentality well because JSON serializes cleanly into _javascript_ objects, and reasonably well into Python objects. XML has a complex DOM that's more difficult to navigate because the W3C assumed that most people would choose to use XPath rather than the low-level DOM primitives, but XPath notation was too different from _javascript_ dot notation conceptually, so you STILL have people who prefer using DOM (or worse, CSS selectors)
Of course, I'm an information architect, not a programmer, so what do I know. :-)
Kurt Cagle
Community/Managing Editor
Data Science Central, A TechTarget Property
443-837-8725