The only cases where XML tech has survived is where it got in early and inertia has kept it there and because it was "good enough".
I genuinely dont know of anybody building new technology on a foundation of XML. There's always something simpler, with a lower bug surface that will handle the job better - even in its originally intended domain of document markup.
I am currently building something new that uses xml for a properties file. My use case requires sql inside a properties file (without the use of additional .sql files). Really wanted to use json/yaml because I felt like I was in the 90s, but xml was just a lot better for this case.
This: |
Always "seemed" a lot cleaner to me.
I dont see why it doesnt accomodate SQL just fine.JSON was never intended primarily for user readability. It's for sending data over a wire. Its focus was on parsing simplicity, ease of serialization and deserialization and to be incidentally readable.
<entity attr="whatever">Try to make this <appearance>look good</appearance> in <markup>YAML</markup></entity>
As I said, horses for courses. FWIW I actually like YAML for certain limited use cases, just not where XML is better. And vice versa.
entity:
attr: whatever
text: |-
Try to make this *look good* in **YAML**.
^ I have quite a lot of YAML hanging around these days like this.Markdown is surprisingly effective as an XML document markup replacement.
What do you mean by this "data defined by a second schema inside a first schema"? And why is it a good idea?
XML has tools to deal with this situation, where it knows that what's found inside <picture></picture> can be evaluated according to the SVG spec.
You also have namespaces, to deal with that a <title> might be a thing both in a text document and a song, and you may need to use both inside the same document without conflicting.
How, exactly, is JSON with JSON Schema inadequate for that?