Hi folks,

When parsing an xml file, we need to apply validation against an xml
schema file. We do not want to rely on the xsi:schemaLocation attribute
in the xml file itself, but instead we want to provide a schema to the
parser explicitly.

What's more, as the caller we want to supply the schema to the parser
through an istream (rather than pointing the parser to a file name or a
URL). This allows us to use schemas dynamically.

We are now using the DOMBuilder::loadGrammar(const DOMInputSource
&source, ...) method which appears to work fine. However, this method is
labeled as "Experimental - subject to change".

What is the intended use for this method? Can I use it, or is there a
"proper" alternative way among the standard methods that I should use?

kind regards,
Erik van Zijst

Reply via email to