| If that is the worst XML that you have experienced then you have been very very lucky. I've seen stuff that: - Has been built by string manipulation and therefore isn't well formed and needs hacky preprocessing before being parsed (no not HTML) - Is full of redundant information (e.g. count attributes giving the number of child elements) - Makes evil use of vast numbers of namespaces where the element names are all the same - Is a basically a container for delimited or fixed format data - Had attributes that contained entire encoded XML documents <sob> There are probably some other horrors that therapy and/or alchohol have let me forget (like systems doing SQL queries doing string compares on lumps of XML). I really like JSON these days... |
I've got that beat. I've dealt with XML that was basically a wrapper for JSON, which contained - you know where this is going - an XML string.
It's retarded elephants all the way down.