|
|
|
|
|
by RyanMcGreal
5479 days ago
|
|
The best way I've encountered to construct XML: <person>
<property>
<name>first-name</name>
<value>John</value>
</property>
<property>
<name>last-name</name>
<value>Smith</value>
</property>
</person>
I kid you not. That's what I'm dealing with at work right now. Thank you, enterprise SOAP solutions. |
|
- 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...