A. Pagaltzis wrote:
* Adam Kennedy <[EMAIL PROTECTED]> [2005-11-23 01:40]:
And XML was designed for, and still remains VERY good at, doing
neutral format data interchange.
Another option if you want a lightweight format for structured
data is JSON. XML is very nice for documents, particularly with
mixed content; JSON is more human-writable for heavily structured
data, such as config files.
Regards,
What XML brings that JSON doesn't is that the data is validation.
Life is a hell of a lot easier when you can just validate the .xml file
and fire it at a very simple SAX parser without the need for a ton of
error-checking logic.
Also, JSON only really handles big dump structures. Strings, arrays and
hashes. How well it handles dealing with the entire output of test
scripts being dumped into it is unknown (by me) too.
Adam K