News for hackers. Stuff that matters.
Re:The lost art of XML by shadowgovt on Thursday January 22, 2026 @11:23PM (#46728389)
XML was abandoned because we realized bandwidth costs money and while it was too late to do anything about how verbose HTML is, we didn't have to repeat the mistake with our data transfer protocols.

Even with zipped payloads, it's just way unnecessarily chatty without being more readable.

Re:The lost art of XML by _heimdall on Thursday January 22, 2026 @11:31PM (#46728439)
That doesn't match my memory, though its been a while now!

I remember the arguments largely revolving around verbosity and the prevalence of JSON use in browsers.

That doesn't mean bandwidth wasn't a consideration, but I mostly remember hearing devs complain about how verbose or difficult to work with XML was.

Re:The lost art of XML by johngossman on Thursday January 22, 2026 @11:48PM (#46728550)
Your memory is correct. Once compression was applied, the size on the wire was mostly a wash. Parsing costs were often greater but that's at the endpoints.
Re:The lost art of XML by shadowgovt on Friday January 23, 2026 @01:19PM (#46735792)
But one of those endpoints is a client on a mobile phone, which when we started with Internet on mobile devices wasn't a particularly powerful CPU architecture.
Re:The lost art of XML by voidfunc on Thursday January 22, 2026 @11:34PM (#46728465)
OK, but XML is a pretty solid format for a lot of other stuff that doesn't necessarily need network transmission.
Re:The lost art of XML by shadowgovt on Friday January 23, 2026 @01:20PM (#46735800)
This is true, but if other formats work for those purposes and also network transmission, they'll start to edge out the alternative of supporting two different protocols in your stack.
Re:The lost art of XML by howdyhowdyhowdy on Thursday January 22, 2026 @11:45PM (#46728536)
if bandwidth was a concern, JSON was a poor solution. XML compresses nicely and efficiently. Yes it can be verbose to the human eyes, but I don't know if bandwidth is the reason it's not used more often.
Re:The lost art of XML by adgjlsfhk1 on Friday January 23, 2026 @12:39AM (#46728840)
JSON absolutely isn't perfect, but it's a spec that you can explain in ~5 minutes, mirrors common PL syntax for Dict/Array, and is pretty much superior to XML in every way.
Re:The lost art of XML by howdyhowdyhowdy on Friday January 23, 2026 @07:32AM (#46731715)
Sure, but the argument is bandwidth which is what I’m comparing them to solutions to each other against.
Re:The lost art of XML by cosmotic on Thursday January 22, 2026 @11:40PM (#46728502)
The article addresses this.