|
|
|
|
|
by sly010
4219 days ago
|
|
I will risk that this will be an unpopular opinion, but if you are having problem with XML, you are using it to solve the wrong problem. I understand writing XSLT and XML Schema can be difficult and I see how typing out XML namespaces can be a pain, but every sentence about XML in that article is a joke. Those quotes are all intended to be funny,
not objective. Noone actually brought an objective facts against XML. Because they can't.
The fact is it is widely used in many places. Anyone tell me an alternative to serialise an object tree
where you also need to preserve ordering and type information, you need to store text longer than one line,
or you just need to store any kind of formatting information. (and yes, you can use JSON to do that, but the resulting document will be 5x longer) (meta: Funny quotes bashing useful technologies is the cat video equivalent of HN.
Last week's article beating OOP was the same pattern.) |
|
* XML is complicated enough that its parsers are commonly full of obscure bugs. JSON/YAML doesn't have this problem.
* XML is complicated enough that its parsers can have security vulnerabilities (e.g. see billion laughs for just one). JSON/YAML doesn't have this problem.
* XML is complicated enough that you can create an almost-but-not-quite valid encoding. The (already complicated enough) parsers have to deal with this and the ones that don't are considered broken. JSON/YAML doesn't have this problem.
* XML's complexity does not give you any additional benefit over YAML or JSON. Serializing/deserializing dates as strings is not a problem. It never was.
XSLT is just the shitty icing on the already crappy cake. A committee created a disastrous turing complete programming language to munge this already overcomplicated data format.