DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14998>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14998 Cleaning the GrammarRegistry on reusing the grammar Summary: Cleaning the GrammarRegistry on reusing the grammar Product: Xerces-C++ Version: Nightly build (please specify the date) Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: Validating Parser (Schema) (Xerces 1.5 or up only) AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I have the problem when working with the following scenario: 1. Parsing the XML document. Tells the parser to cache the grammar on parse: parse.cacheGrammarFromParse(true); parse.parse(...) 2. Parsing another XML Document with the same parser, and asking it to reuse the grammar. Also wants to continue caching another possible grammars: parse.useCachedGrammarInParse(true); parse.parse(...) Each parse begins with the following method: fScanner->scanDocument(source); It does: - scanReset(src); --fGrammarResolver->cacheGrammarFromParse(fToCacheGrammar); --fGrammarResolver->useCachedGrammarInParse(fUseCachedGrammar); both fToCacheGrammar and fUseCachedGrammar are true GrammarResolver::cacheGrammarFromParse() calls: ---fGrammarRegistry->removeAll(); So, all that we have previously cached, is destroyed I'm not sure that is the behaviour by default. If I wrong, please explain the cache mechanism (usage) and close this bug as the invalid --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
