points by rhdunn 3 days ago | 0 comments
XML is still used for various formats like RSS (podcasts), SVG, sitemaps, and EPUB metadata (OPS).
XSLT is still used on the server back-end for rendering publisher documents (JATS, etc.) and for things like US bills.
[–] xp84 3 days ago
[–] rhdunn 3 days ago
JSON is better for modelling structured data and is easier to bind to internal application structures and classes (or generic maps and arrays). That (and native support in JavaScript) is why JSON grew in popularity.
XML is better for modelling mixed content data such as documents ((X)HTML, JATS, DocBook, etc.), images (SVG), or math (MathML). That is why XML is still used in publishing, standards, etc.
[–] sheepscreek 3 days ago
I should have clarified I meant XML is no longer seriously considered for any new protocols/formats.
For XML, we can add docx/xlsx/pptx/odt/ods/odp to the list.
Basically it's like a list of everything that was clean-sheet invented like ~ 1996-2007 used XML, then over the course of about 2 years it transitioned, and almost nothing invented after 2009 or so used it. It was like the whole software industry realized what a huge mistake and pivoted to JSON, all at once.