▲ | mattlondon 2 days ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||
+1 I think XML "lost" some time ago. I really doubt anyone would chose to use it for anything new these days. I think, from my experience at least, that we keep getting these "component reuse" things coming around "oh you can use Company X's schema to validate your XML!" "oh you can use Company X's custom web components in your web site!" etc etc yet it rarely if ever seems to be used. It very very rarely ever feels like components/schemas/etc can be reused outside of their intended original use cases, and if they can they are either so trivially simple it's hardly worth the effort, or they are so verbose and cumbersome and abstracted trying to be all things to all people then it is a real pain to work with. (And for the avoidance of doubt I don't mean things like tailwind et Al here) I'm not sure who keeps dreaming these things up with this "component reuse" mentality but I assume they are in "enterprise" realms where looking busy and selling consulting is more important than delivering working software that just uses JSON :) | |||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | NoboruWataya 2 days ago | parent | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
It may be that nobody would choose XML as the base for their new standard. But there are a ton of existing standards built around XML that are widely used and important today. RSS, GPX, XMPP, XBRL, XSLT, etc. These things aren't being replaced with JSON-based open standards. If they die, we will likely be left without any usable open standards in their respective niches. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | bryanrasmussen 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
probably nobody would choose it for anything new because the sweet spots for XML usage have all already been taken, that said if someone was to say hey we need to redo some of these standards they can of course find ways to make JSON work for some standards that are XML nowadays, but for a lot of them JSON would be the absolute worst and if you were redoing them you would use XML to redo. example formats that should not ever be JSON TEI https://tei-c.org/ EAD https://www.loc.gov/ead/ docbook https://docbook.org/ are three obvious ones. basically anything that needs to combine structured and unstructured data and switch between the two at different parts of your tree are probably better represented as XML. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | bayindirh 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
> I really doubt anyone would chose to use it for anything new these days. I use it to store complex 3D objects. It works surprisingly well. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | temporallobe 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
XML might have “lost” but it’s still a format being used by many legacy and de novo projects. Transform libraries are also alive and well, some of them coming with hefty price tags. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | weinzierl 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
"I really doubt anyone would chose to use it for anything new these days." Funny how went from "use it for everything" (no matter how suitable) to "don't use it for anything new" in just under two decades. To me XML as a configuration file format never made sense. As a data exchange format it has always been contrived. For documents, together with XSLT (using the excellent XPath) and the well thought out schema language RelaxNG it still is hard to beat in my opinion. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | ekianjo 2 days ago | parent | prev | next [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
LLMs produce much more consistent XML than JSON because JSON is a horrible language that can be formatted in 30 different ways with tons of useless spaces everywhere, making for terrible next token prediction. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | MrVandemar 2 days ago | parent | prev [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||
> I really doubt anyone would chose to use it for anything new these days. Use the correct tool for the job. If that tool is XML, then I use it instead of $ShinyThing. | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|