Opinion — The single most pathetic feature of XML is this: When a document is not XML valid, the specs insist you should throw an error instead of parsing it. Next time a coder brags about how useful this it, try this for an answer: Laugh at him.
It’s a lot simpler to parse a valid document, they go. And it’s not that difficult to produce a valid one. Moreover, there’s no possible ambiguity when you validate an XML document.
But then, here I am, hapless as a hapless user can be, subscribed to a feed with an ampersand in the content. As it happens, ampersands are not
& in XML. They are
&. Why not “
& unless this could be ambiguous”, you ask? Go figure… The fact remains: I get a parse error.
As a hapless user, I don’t care what the specs say. I want my news reader to parse the news feed whether it is valid or not. If an obvious correction can correct the XML, then do not even notify me. Just correct it. This is like… basic usabiliy.