Validating xml parser c
Recently there’s been a bunch of announcements of new XML parsers that claim to be very fast, very small or both.
I also see a lot of people get very enthusiastic about using them in their applications.
December 13, 2001 Eric van der Vlist and Lisa Rein Updated December 2001.
This guide includes details of tools for working with the W3C XML Schema Definition Language, as well as some tools for processing alternative schema languages such as RELAX NG and Schematron.
The W3C XML specification defines two types of conforming XML parsers: validating and non-validating (see Section 5.1, “Validating and Non-Validating Processors”).
XML schema is supported in a similar way, but requires an explicit schema to be provided: As described above, the parser support for DTDs depends on internal or external subsets of the XML file.You can get away with using a non-conforming XML parser if you control the production of XML you are planning to parse and thus restrict the set of XML constructs that can appear in your documents. If you control both the production and consumption of the data then you might as well choose a more natural (for your application and environment) and efficient (that’s why choose this new parser) exchange format than XML.A more common scenario is when you have to parse XML supplied by various third parties and once you say your format is XML then all bets are off; it is only a matter of time before someone sends you a perfectly valid XML document that your application won’t be able to handle.Once I tell people about these problems with their choice of XML parser, some say they don’t care since nobody uses these features anyway.It is true that most of these features are seldom used.