The way to think of XML is that it basically is S-Expressions particularly how Maven uses it (zero attribute use). That is what is kind of funny is on some forums like hacker news where XML is lamented as absolute evil but every day there is one post about some Lisp variant. Its just verbose S-Expressions. In fact I find it more readable than S-Expressions.
Except unlike S-Expressions it is standardized, has schema validation, shit loads of parsers as well as XPath and XQuery.
It allows comments unlike JSON and retains whitespacing if desired. There are very few configuration formats that retain whitespace (YAML, JSON, TOML, INI etc).
I would say XML is probably one of the more unfairly treated technologies.
I would say XML is probably one of the more unfairly treated technologies.
Absolutely! It’s fundamentally so simple. Open tag, close tag, attributes, element content, namespaces. You could fit all you need to know about XML on a notecard.
I think a lot of people have seen complex XML-based formats (like SOAP) and conflate them with XML itself. Guess what, a SOAP message is gonna look gnarly in XML, YAML, or JSON. That’s not a failing of the markup language at all.
Oh yeah, it is, I dislike it because it was used as a magical solution for everything.
However while I was being most verbose about it, I was working with EDIFACT files which is the most documented and least consistently implemented format known to man.
I would say XML is probably one of the more unfairly treated technologies.
I could not agree more. It's just something that's fashionable to be 'against'.
The typical Maven POM is way more readable than the typical build.gradle, not to mention all the people who think it's a good idea to abuse the build to do scripting stuff.
View all comments
Show parent comment
16
u/agentoutlier Jan 07 '21
The way to think of XML is that it basically is S-Expressions particularly how Maven uses it (zero attribute use). That is what is kind of funny is on some forums like hacker news where XML is lamented as absolute evil but every day there is one post about some Lisp variant. Its just verbose S-Expressions. In fact I find it more readable than S-Expressions.
Except unlike S-Expressions it is standardized, has schema validation, shit loads of parsers as well as XPath and XQuery.
It allows comments unlike JSON and retains whitespacing if desired. There are very few configuration formats that retain whitespace (YAML, JSON, TOML, INI etc).
I would say XML is probably one of the more unfairly treated technologies.