4 ms·
Compared to the problems when dealing with 'delimited text', XML is great. Also it's flexible where you can specify properties as attributes or child nodes, de
by Nuffinatall 10y ago
Compared to the problems when dealing with 'delimited text', XML is great.
Also it's flexible where you can specify properties as attributes or child nodes, depending on wildcard specifications.
So I have dealt with lots of edge-case XML situations, but the solutions are always straight forward. Also it helps to have a client vs. trying to parse out raw XML, which means programming and scripting sometimes relies on personal tool development. XML handles scope creep well.
- DougN7 10y agoHandling scope creep is my favorite feature. With XML, it's easy to deserialize even if an expected element is not there, or if there is an extra one you're not expecting, at least that's been my experience. I haven't done much JSON but I'm not sure how that would work with it.
- beagle3 10y agoJSON deserialization would basically be the same. XML does not score here.
- QuercusMax 10y agoPretty much any "real" serialization format should handle that situation fine. Protobuf, JSON, YAML, Thrift, heck, even Java serialization can handle that, provided you set a serialVersionUID.