3 ms·
XML isn’t hard to parse, sure, but you still have to do parsed entities and default attribute values for the (mandatory) “internal DTD subset”, don’t you? If yo
by mananaysiempre 4y ago
XML isn’t hard to parse, sure, but you still have to do parsed entities and default attribute values for the (mandatory) “internal DTD subset”, don’t you? If you omit that, then sure, the rest[1] is basically in the ballpark of JSON. But for a full parser you still have to do a full textual macro system so you have to allocate given untrusted input so ... so now you’re basically doing a good chunk of a simple compiler frontend. (And the macro system it can’t even do namespaces because SGML.) Kind of annoying for a feature that basically nothing except MathML uses.
[1] https://dev.yorhel.nl/yxml https://dev.yorhel.nl/yxml