Hi Alain,
Alain Leblanc <[EMAIL PROTECTED]> writes:
> //parser->setFeature(XMLUni::fgXercesSchema, true);
> //parser->setFeature(XMLUni::fgDOMNamespaces, true);
> //parser->setFeature(XMLUni::fgDOMValidateIfSchema, true);
>
> parser->setFeature(XMLUni::fgDOMValidation, true);
> parser->loadGrammar("MySchema.xsd", Grammar::SchemaGrammarType, true);
>
> DOMDocument *doc = parser -> parseURI("example.xml");
>
> [...]
>
> Does anyone has any idea for what I need to do?
I think you need to add this:
parser->setFeature (XMLUni::fgXercesUseCachedGrammarInParse, true);
Boris
--
Boris Kolpackov
Code Synthesis Tools CC
http://www.codesynthesis.com
Open-Source, Cross-Platform C++ XML Data Binding