Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I don't get this. XML has the capacity of being as simple as you want it to be. You don't need schemas, namespaces, xpath

XML data model (trees with attributed nodes and special kinds of leaves) is not native to any language: XPath/XQuery and XSLT exist to bridge the alien world of XML to regular programming languages. Taking them out doesn't make XML simpler.

JSON doesn't have them because it can be represented with maps and lists, object types fundamental to many programming languages (it practically maps almost exactly to every scripting language created in the last 20 years). That's why it doesn't have, and doesn't need, XPath or XSLT equivalents. And that's also why it feels more natural to most programmers (ie. 50% less bullshit).

You could build a stronger case for the need of schemas and namespaces but IMHO that's actually bullshit, even in XML. But you can ignore them in XML too, as you noted, so it doesn't really matter.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: