Re: How to use cached grammar

2003-03-21 Thread Khaled Noaman
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

How to use cached grammar

2003-03-20 Thread Bagepalli, Kiran
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);