Frank Zhou wrote:
David,

Thanks for your reply. I added the two features like
this:


pParser->setFeature(XMLUni::fgXercesCacheGrammarFromParse,
true);

pParser->setFeature(XMLUni::fgXercesUseCachedGrammarInParse,
true);

And I am seeing the same behavior. Is there any sample
code snappet available anywhere? I could'nt find any
in the samples provided by Xerces-c package.


You probably need to set the following:

parser->setFeature(XMLUni::fgXercesDynamic, false);

Dynamic validation means the parser will only validate if there is a DOCTYPE declaration indicating there's a grammar.

Take a look at the SAX2Print sample for more information.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to