Other features include conformity to XML 1.0; tracking of latest DOM and SAX specifications; programmatic generation and validation of XML; pluggable catalogs, validators and encodings; and customizable error handling.
XML4P includes a collection of Perl wrapper objects that internally use their XML4C counterparts for high-performance, scalable and localizable DOM parsing.
However, when I initially look at each xml file, I do not know what file it is until I parse it, hence I cannot link a static xsd file to it.
Is there a way of saying, I want to validate each xml file against xsd1 or xsd2 or etc...
After reading around it appears the settings of the parser 'set External Schema Location' is able to hold a list of schemes but when I do this in my code, it doesn't validate correctly.
but f Error Reporter is null, so nothing is reported. UPDATE: This is Xerces-c version 3.1 Note I've read this but it doesn't seem to work with SAX.
I was wondering if there was a way to validate against multiple xml schemes using Xerces DOM parser in c ?
Here is the use-case: I want to be able to parse multiple xml files against its corresponding xsd schema.Features include programmatic generation and validation of XML; conformity to DOM specifications; and customizable error handling.Xerces-C is a validating XML parser written in a portable subset of C .Xerces-C makes it easy to give your application the ability to read and write XML data.A shared library is provided for parsing, generating, manipulating, and validating XML documents.Unfortunately i haven't found a way to do this with Xerces C , yet. Boris Kolpackov suggests in a blog post that applications should provide the XSD schema files by themselves rather than looking up the schema files through the xsi:schema Location or xsi:no Namespace Schema Location attributes found in the XML file.