Ask HN: Why did XML failed to be the standard for data format?
Every xml file I&#x27;ve ever encountered was broken in some way or malformed compared to its schema. Manual adjustment was nearly always required in some way. (Yet they had schemas and full descriptions) JSON files come in all sizes and complexity but typically work better. Much easier to read&#x2F;write using automated tools. XML is far too complex to read with simple parsers in a performant way especially when compared to JSON.<p>For data transfer now I&#x27;d actually prefer csv over xml due to the simple fact I can at least sanitise it. <i>That</i> is how low my opinion has gotten over years of data migration projects. In my new work I primarily work on JSON &#x2F; csv &#x2F; tsv and would not even consider xml. XML schemas have the idea of keeping data clean etc as well as guiding parsers etc but the added functionality comes at a price in performance and parsing complexity. I did find the xml transformation abilities useful however.<p>My personal opinions aside, friends of mine using java still swear by xml so if you&#x27;re from that crowd your opinion might differ. I&#x27;m guessing the java infrastructure is more forgiving but its been too long for me to assume more than that. They obviously find utility in it: terabytes of xml is not trivial by any stretch of the imagination.