News for hackers. Stuff that matters.
Re:Why XML Tags Are So Fundamental to Claude by coldtea on Sunday March 01, 2026 @02:47PM (#47209998)
XML has been "spooky old technology" for over a decade now. It's heyday was something like 2002.

Nobody dares advertise the XML capabilities of their product (which back then everybody did), nobody considers it either hot new thing (like back then) or mature - just obsolete enterprise shit.

It's about as popular now as J2EE, except to people that think "10 years ago" means 1999.

Re:Why XML Tags Are So Fundamental to Claude by rhdunn on Sunday March 01, 2026 @04:17PM (#47210756)
XML is used a lot in standards and publishing industries -- JATS, EPUB, ODF, DOCX/XLSX/..., DocBook, etc. are all XML based/use XML.
Re:Why XML Tags Are So Fundamental to Claude by coldtea on Sunday March 01, 2026 @06:10PM (#47211772)
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.
Re:Why XML Tags Are So Fundamental to Claude by axus on Sunday March 01, 2026 @10:52PM (#47213679)
It was the blockchain of its day
Re:Why XML Tags Are So Fundamental to Claude by michaelbarton on Sunday March 01, 2026 @04:42PM (#47210983)
Without being facetious, isn’t HTML a dialect of XML and very widely used?
Re:Why XML Tags Are So Fundamental to Claude by Twisol on Sunday March 01, 2026 @04:46PM (#47211020)
HTML is actually a dialect of SGML. XHTML was an attempt to move to an XML-based foundation, but XML's strictness in parsing worked against it, and eventually folks just standardized how HTML parsers should interpret ill-formed HTML instead.
Re:Why XML Tags Are So Fundamental to Claude by thayne on Sunday March 01, 2026 @10:43PM (#47213631)
I do wish they at least allowed you to make any tag self closing so I can do <div class="my-element" /> without needing to include a </div>
Re:Why XML Tags Are So Fundamental to Claude by michaelbarton on Monday March 02, 2026 @05:22PM (#47225021)
Ah good to know. It’s interesting (to me) how similar they look to each other but you and other commentators below mention how they’re more like distant cousins

I suppose the proof is in the parsing

Re:Why XML Tags Are So Fundamental to Claude by vitejose on Sunday March 01, 2026 @04:46PM (#47211021)
No, HTML was historically supposed to be a subset of SGML; XML is also an application of SGML. XHTML is the XML version of HTML. As of HTML5, HTML is no longer technically SGML or XML.
Re:Why XML Tags Are So Fundamental to Claude by phlakaton on Sunday March 01, 2026 @05:58PM (#47211667)
HTML is far loosier-goosier in its syntax than XML allows. There was an attempt to nail its syntax down in the pre-HTML 5 days; that's XHTML. When HTML 5 pivoted away from that, that spelled the end of these two things ever coming together.

Really, I think you can trace a lot of the "XML is spooky old technology" mindset to the release of HTML 5. That was when XML stopped being directly relevant to the web, though of course it still lives on in many other domains and legacy web apps.

Re:Why XML Tags Are So Fundamental to Claude by dragonwriter on Monday March 02, 2026 @12:39AM (#47214249)
> There was an attempt to nail its syntax down in the pre-HTML 5 days; that's XHTML. When HTML 5 pivoted away from that, that spelled the end of these two things ever coming together.

Exactly the opposite; WHATWG “Living Standard” HTML (different releases of which were used as the basis for W3C HTML5, 5.1, and 5.2 before the W3C stopped doing that) includes an XML serialization as part of the spec, so now the HTML-in-XML is permanently in sync with and feature-matched with plain HTML.

Re:Why XML Tags Are So Fundamental to Claude by spider-mario on Monday March 02, 2026 @04:43AM (#47215720)
https://html.spec.whatwg.org/multipage/xhtml.html

“Warning! Using the XML syntax is not recommended, for reasons which include the fact that there is no specification which defines the rules for how an XML parser must map a string of bytes or characters into a Document object, as well as the fact that the XML syntax is essentially unmaintained — in that, it’s not expected that any further features will ever be added to the XML syntax (even when such features have been added to the HTML syntax).”

Re:Why XML Tags Are So Fundamental to Claude by dragonwriter on Monday March 02, 2026 @12:28AM (#47214200)
No, HTML was a specific application profile of SGML (modern HTML, I believe, no longer technically is), XML is a newer (than HTML) application profile of SGML inspired by HTML but aiming for greater generality.

XHTML was an attempt to encode HTML semantics (approximately, each version of XHTML also altered some semantics from HTML and previous XHTML versions) in XML, and the XML serialization of modern, WHATWG HTML exactly encodes HTML semantics in XML.

Re:Why XML Tags Are So Fundamental to Claude by graemep on Sunday March 01, 2026 @05:09PM (#47211220)
Also in finance. XBRL and FIXML although I do not know how widely used the latter is.
Re:Why XML Tags Are So Fundamental to Claude by miki123211 on Sunday March 01, 2026 @11:40PM (#47213954)
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.

Re:Why XML Tags Are So Fundamental to Claude by vlovich123 on Sunday March 01, 2026 @04:08PM (#47210659)
For me, even when it was first released, I considered obsolete enterprise shit. That view has not diminished as the sorry state of performance and security in that space has just reaffirmed that perception.
Re:Why XML Tags Are So Fundamental to Claude by cyanydeez on Sunday March 01, 2026 @03:20PM (#47210273)
20 years old means 1980!
Re:Why XML Tags Are So Fundamental to Claude by himata4113 on Sunday March 01, 2026 @04:11PM (#47210684)
didn't know html was spooky tech, TIL. /s
Re:Why XML Tags Are So Fundamental to Claude by coldtea on Sunday March 01, 2026 @06:26PM (#47211924)
HTML predates XML by 5 years.

What's more, the web standards bodies even abandoned a short-lived XML-hype-era plan to make a new version of HTML based on XML in 2009.

That from this touted to the heavens format a handful of uses remain (some companies still using SOAP, the MS Office monster schemas, RSS, EPUB, and so on) is the very opposite of the adoption it was supposed to have. For those that missed the 90s/early 00s, XML was a hugely hyped format, with enormous corporate adoption between 1999–2005, which deflated totally.

Did you also learned those things too today?

Re:Why XML Tags Are So Fundamental to Claude by himata4113 on Tuesday March 03, 2026 @04:20PM (#47239185)
thinking for a bit longer, it does make sense. internet came before xml.
Re:Why XML Tags Are So Fundamental to Claude by eduction on Sunday March 01, 2026 @04:24PM (#47210819)
Obsolete enterprise shit I guess includes podcasting. Impressive for the enterprise.

I’d be very curious what lasting open formats JSON has been used to build.

Re:Why XML Tags Are So Fundamental to Claude by coldtea on Sunday March 01, 2026 @06:18PM (#47211852)
That the podcast feed format is XML based is an insignificant detail - and a remnant of the past, nobody cares about.

People upload their podcasts to a platform like Apple Music or Spotify or Substack and co, or to some backend connected to their Wordpress/Ghost/etc) and it spits the RSS behind the scenes, with nobody giving a shit about the XML part.

Might as well declare USSR a huge IT success because people still play Tetris.

Re:Why XML Tags Are So Fundamental to Claude by girvo on Sunday March 01, 2026 @04:44PM (#47211005)
I kind of miss SOAP. Ahead of its time? Probably not, but I built some cool things on top of it
Re:Why XML Tags Are So Fundamental to Claude by pfraze on Sunday March 01, 2026 @04:57PM (#47211135)
atproto's lexicon-based rpc is pretty soap-like
Re:Why XML Tags Are So Fundamental to Claude by vbezhenar on Sunday March 01, 2026 @08:39PM (#47212851)
Right now I'm writing adapter so people could call one SOAP service using simpler interfaces. That involves implementing WS-Security with non-standard algorithms, that also involves dealing with things like XML escaped into a string and embedded inside another XML.

Let's say I hope for the day I'll miss SOAP. Right now I have too much of it.

Re:Why XML Tags Are So Fundamental to Claude by fc417fc802 on Sunday March 01, 2026 @05:00PM (#47211157)
It's not the hot new thing but when has hype ever mattered for getting shit done? I don't think anyone who considers it obsolete has an informed opinion on the matter.

Typically a more primitive (sorry, minimal) format such as JSON is sufficient in which case there's no excuse to overcomplicate things. But sometimes JSON isn't sufficient and people start inventing half baked solutions such as JSON-LD for what is already a solved problem with a mature tech stack.

XSLT remains an elegant and underused solution. Guile even includes built in XML facilities named SXML.

Re:Why XML Tags Are So Fundamental to Claude by coldtea on Sunday March 01, 2026 @06:12PM (#47211792)
>It's not the hot new thing but when has hype ever mattered for getting shit done?

People who wanted to "get shit done" had much better alternatives. XML grew out of hype, corporate management forcing it, and bundling to all kinds of third party products and formats just so they can tick the "have this hot new format support" box.

Re:Why XML Tags Are So Fundamental to Claude by array_key_first on Sunday March 01, 2026 @06:47PM (#47212070)
XML is perfectly fine. What are these alternatives?

YAML is just bad. JSON is harder to read for deeply nested structures. TOML and the like don't have enough features.

Re:Why XML Tags Are So Fundamental to Claude by sham1 on Sunday March 01, 2026 @07:10PM (#47212254)
Maybe ASN.1? Although that has an official XML encoding so maybe not.
Re:Why XML Tags Are So Fundamental to Claude by RHSeeger on Sunday March 01, 2026 @08:35PM (#47212816)
XML is pretty fantastic for a lot of things that JSON is not up to the task for. And YAML ... has it's own, special issues.
Re:Why XML Tags Are So Fundamental to Claude by mycall on Sunday March 01, 2026 @05:46PM (#47211542)
It makes me wonder how well an LLM like Opus can generate XSLT which was always the hard part when writing by hand.
Re:Why XML Tags Are So Fundamental to Claude by fc417fc802 on Sunday March 01, 2026 @06:10PM (#47211768)
Given that the SXML DSL has existed since the early 2000s have ergonomics really been a limiting factor? Of course having LLMs write things for you is also useful.
Re:Why XML Tags Are So Fundamental to Claude by thayne on Sunday March 01, 2026 @11:11PM (#47213791)
> It's not the hot new thing but when has hype ever mattered for getting shit done?

But it used to be. And so it was used for a lot of things where it wasn't a great fit. XML works fairly well as a markup format, but for a lot of things, something like json models the data better.

> which case there's no excuse to overcomplicate things.

And that's a problem with xml. It's too complicated. Even if the basic model of xml is a good fit for your data, most of the time you don't need to worry about namespaces and entity definitions, and DTDs, but those are still part of most implementations and can expose more attack surface for vulnerabilities (especially entity definitions). And the APIs of libraries are generally fairly complicated.

Re:Why XML Tags Are So Fundamental to Claude by fc417fc802 on Monday March 02, 2026 @12:24AM (#47214172)
I don't think I'd agree that it's a problem with the tool. However you do raise a good point - that there are problems that JSON and similar struggle with where XML would introduce a noticeable amount of unneeded complexity. It's a wide enough gap that a simplified subset of XML is probably be warranted. (I assume it must exist by now and I've just never heard of it?)
Re:Why XML Tags Are So Fundamental to Claude by thayne on Monday March 02, 2026 @12:59AM (#47214368)
> a simplified subset of XML is probably be warranted

There are several. And that's the problem. It isn't hard to find a subset with a library for a single language that uses a slightly different subset from the other subsets. But none of them ever caught on.