> What header files are you including? Do you have #include
> <xercesc/validators/DTD/DTDGrammar.hpp>?
Thx David. This was the missing include...
Unfortunately, parser->loadGrammar does not affect the
parsing. It is still the DTD specified in the XML file
validated!!!!
// create parser and do some settings
XercesDOMParser* parser = new XercesDOMParser();
parser->setDoSchema( true );
parser->setValidationScheme(valScheme);
parser->setDoNamespaces(true);
parser->setIncludeIgnorableWhitespace(false);
// Load DTD grammar and cache it -> has no effect
parser->loadGrammar("doesNotExist.dtd", Grammar::DTDGrammarType, true);
parser->parse(xmlFile);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]