News for hackers. Stuff that matters.
Re:A brief XML rant by adamtaro on Monday March 04, 2013 @08:12AM (#5317998)
It was not intended as a criticism of XML at all. XML is a perfectly cromulent standard. It is a criticism of amateurish use of XML.
Re:A brief XML rant by egeozcan on Monday March 04, 2013 @08:15AM (#5318003)
Which is everywhere (xhtml, anyone?)
Re:A brief XML rant by sageikosa on Monday March 04, 2013 @08:59AM (#5318180)
The "X" is for "extreme", right?
Re:A brief XML rant by rimantas on Monday March 04, 2013 @08:40AM (#5318101)
There are very few websites where xhtml is served with a proper MIME type. MIME type triggers xml parsing mode in browsers, so in most cases xhtml is treated exatly as deserved: just a tag soup.
Re:A brief XML rant by Kequc on Monday March 04, 2013 @09:34AM (#5318342)
Yea but I've been using haml for quite a while to generate markup. XML is horribly inefficient by comparison and prone to mistakes.
Re:A brief XML rant by dscrd on Monday March 04, 2013 @08:50AM (#5318145)
XML is so complex and obtuse that one can hardly blame the practicioners for misusing it.
Re:A brief XML rant by sageikosa on Monday March 04, 2013 @08:58AM (#5318175)
XML is obtuse only when you try to read definitions of XML dialects written in XML dialects themselves; even then, it's understandable, though it is a "high-art" discipline of schema-world semantics.
Re:A brief XML rant by dscrd on Monday March 04, 2013 @10:14AM (#5318533)
I agree that <tag attribute="value">data</tag> is simple, but XML is, unfortunately, much more than that. And this article complains about that "much more" part.
Re:A brief XML rant by sageikosa on Monday March 04, 2013 @11:07AM (#5318837)
I'll agree with your agreement; the human legibility of XML data often leads the novice programmer into making bad assumptions about the simplicity of implementing XML.

While it is possible to implement "well-formed" XML easily enough, validating against schema is another matter. In this particular article's case, the "well-formedness" isn't even there.

Re:A brief XML rant by jarman on Tuesday March 05, 2013 @10:09AM (#5324823)
For one-off, transport xml it's not much more. It's proper escaping, declaration with character set and not using features you do not know how to use. First two are solved by using proper library, third - by common sense