logoalt Hacker News

rhdunnyesterday at 9:17 PM4 repliesview on HN

XML is used a lot in standards and publishing industries -- JATS, EPUB, ODF, DOCX/XLSX/..., DocBook, etc. are all XML based/use XML.


Replies

miki123211today at 4:40 AM

And I think this makes sense.

XML is really great for text documents with embeds and markup, either semantic (this part of the paper is an abstract) or visual (this part of the document should be 14-point and aligned right). You can do this in JSON, but it's a pain.

JSON is great for representing data. If you have some data structures and two machines trying to exchange them, JSON is great for that.

TOML / yaml / hcl / JSON with comments are great at config. If you have a human writing something that a machine is supposed to understand, you don't want turning completeness and you don't want to deal with the pain of having your own DSL, those are great.

michaelbartonyesterday at 9:42 PM

Without being facetious, isn’t HTML a dialect of XML and very widely used?

show 4 replies
coldteayesterday at 11:10 PM

Yes, there's a handful of niches. Still 1/1000th the momentum it had, or adoption it was expected to get, and nobody under 40 even considers it for new stuff.

show 1 reply
graemepyesterday at 10:09 PM

Also in finance. XBRL and FIXML although I do not know how widely used the latter is.