2 ms·
You wouldn’t parse an HTML document with regular expressions. So why would you parse one with an XML parser? It’s just wrong. (And an effort doomed to failure
by chrismorgan 6y ago
You wouldn’t parse an HTML document with regular expressions.
So why would you parse one with an XML parser? It’s just wrong. (And an effort doomed to failure if you ever have to deal with documents other people wrote, because very few will parse.)
- mschuster91 6y agoI deal with boatloads of manually written XML and HTML (templates) at my job. It's simpler in mindset to always write something that can be parsed as XML and is not much overhead (a single byte ffs).
- ttepasse 6y agoThere are a lot of more XML parser than HTML5 parser in the world. That's an argument for polyglot markup, if you like the open web and HTML as an API.