Hacker News new | ask | show | jobs
by tomc1985 3252 days ago

  "who in their right mind would use XML over JSON today?"
Lost me already... there are lots of reasons to still use XML today. And since someone is going to ask, here are some:

* you want to use xpath

* you want to communicate with an enterprise app (salesforce, magento, etc)

* you need strongly-typed message-passing in a human-readable well-understood format (rules out messagepack, etc)

* nobody actually documented the API, but they might have a WSDL

2 comments

Or your data is…you know…mark-up. Imagine a biology textbook, or legal contract, with inline citations and entities. There’s lots of marked-up human text around, even if that’s not what you’re sending to a JavaScript front-end. (Ironically, all of our JavaScript front-end frameworks are ultimately building mark-up as documents for human consumption.)
I read that too and assumed the author was confining that to the type of development they do. Either way it comes off a ignorant and even a little rude.