• 0 Posts
  • 415 Comments
Joined 3 years ago
cake
Cake day: July 20th, 2023

help-circle









  • Information set isn’t a description of XML documents, but a description of what you have that you can write to XML, or what you’d get when you parse XML.

    This is the key part from the document you linked

    The information set of an XML document is defined to be the one obtained by parsing it according to the rules of the specification whose version corresponds to that of the document.

    This is also a great example of the complexity of the XML specifications. Most people do not fully understand them, which is a negative aspect for a tool.

    As an aside, you can have an enforced order in XML, but you have to also use XSD so you can specify xsd:sequence, which adds complexity and precludes ordered arrays in arbitrary documents.



  • In HTML, which things are attributes and which things are tags are part of the spec. With XML that is being used for something arbitrary, someone is making the choice every time. They might have a different opinion than you do, or even the same opinion, but make different judgments on occasion. In JSON, there are fewer choices, so fewer chances for people to be surprised by other people’s choices.



  • Honestly, anyone pining for all the features of XML probably didn’t live through the time when XML was used for everything. It was actually a fucking nightmare to account for the existence of all those features because the fact they existed meant someone could use them and feed them into your system. They were also the source of a lot of security flaws.

    This article looks like it was written by someone that wasn’t there, and they’re calling people telling them the truth that they are liars because they think features they found in w3c schools look cool.