Hacker News new | ask | show | jobs
by spiralhead 6100 days ago
My dislike of XML is pretty simple: it forces you to be more verbose. That is bad for the web.

For instance <tag att1=val att2> is valid HTML. The XML equivalent is <tag att1="val" att2="att2" />. Why is this a good idea, again?

2 comments

If there's any real complexity in your site you won't write HTML by hand anyway, so I don't care if the "object code" is a bit more verbose if it means it's more computer-friendly.
Because the second can more easily be parsed 100% correctly and consistently, while the first one will not allow you to fully understand a document-tree without lots of wile and complex forward and backward document scanning, and you may still be wrong.

This especially true for bigger and deeper document-trees.