The DTD grammar is cached using the system id that you pass when you call load
grammar.
When you parse you xml file, does the system id of the DOCTYPE resolves to the
same id that you passed to load grammar?
"Bagepalli, Kiran" wrote:
> I am trying the following piece of code
>
> XMLPlatformUt
I am trying the following piece of code
XMLPlatformUtils::Initialize();
SAX2XMLReader* parser = XMLReaderFactory::createXMLReader();
parser->loadGrammar("d:\\datacenter\\xml\\Storeinfo.dtd",
Grammar::DTDGrammarType, true);
parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, true);