4 ms·
XML has a unique spot in the intersection of payload and human crafted file. JSON is something I see as payload-only really. And YAML etc are human-craft only.
by quickthrower2 4y ago
XML has a unique spot in the intersection of payload and human crafted file.
JSON is something I see as payload-only really. And YAML etc are human-craft only.
One thing I would change in XML is that closing a tag should not need to specify the name. <> should close any tag. It would make editing a bit easier and save a byte or two.
- bazoom42 4y agoSGML allowed you to minimize a closing tag. And HTML supported this in theory, although mainstream browsers never supported it. XML went for a syntax with fewer options because the complexity of SGML was considered a hinderance to its adoption.
- ElectricalUnion 4y agoSGML is also the reason why a HTML parser is often much more complex that a xml parser, even thought modern html is no longer SGML and instead a simplified version of it.
- didntreadarticl 4y agoIts true, I can bang together an XML doc by hand with less worry than if I type out some JSON