Re:How to Avoid Being Called a Bozo When Producing XML (2005)
by ams6110 on Sunday July 31, 2016 @02:51PM
(#12198279)
XML as a config file format was a disaster in every example I ever encountered. Config files are supposed to be editable by humans using editors, and most that I saw were too complex for that. In particular the NeXT/Apple property file formats are horrible abuses of XML.
As a format to represent structured data, it could be fine as long as you were pragmatic about it. In the case of <task id="3"> you either assumed that "id" was always an integer or you validated it with a schema declaration, which quickly got hairy.
In practice I never validated XML beyond it being well-formed (which was provided by default in any parser) and never had any real problems.
As a format to represent structured data, it could be fine as long as you were pragmatic about it. In the case of <task id="3"> you either assumed that "id" was always an integer or you validated it with a schema declaration, which quickly got hairy.
In practice I never validated XML beyond it being well-formed (which was provided by default in any parser) and never had any real problems.