Hi Boris,
Thanks for the suggestion, but it didn't change anything.
I'll keep trying, but I think I can achieve what I want for now using
XercesDOMParser so I won't spend too much time on this. I'll report
back if I figure out what I did wrong, though.
a
2008/1/16, Boris Kolpackov <[EMAIL PROTECTED]>:
> 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
>