logoalt Hacker News

quotemstrtoday at 4:08 PM0 repliesview on HN

> The main property of SGML-derived languages is that they make "list" a first class object, and nesting second class (by requiring "end" tags),

As opposed to JSON, which famously lacks lists? What does "second class" even mean here? How is having an end-indicator somehow a demotion?

> talking about XML-lookalike language, and not XML proper. If you go XML proper, you need to throw "cheap" out the window.

libxml2 and expat are plenty fast. You can get ~120MB/s out of them and that's nowhere near the limit. Something like pugixml or VTD can do faster once you've detected you're not working with some kind of exotic document with DTD entities.