[ https://issues.apache.org/jira/browse/XERCESC-1927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ben Griffin updated XERCESC-1927: --------------------------------- Attachment: foo.xml foo.xsd remaining files for example. The actual contents of the xml files and dtd/xsd files are not important; as long as they are all valid the issue is seen. > Mistaken exception thrown when loading a DTD grammar after an xml file is > parsed > -------------------------------------------------------------------------------- > > Key: XERCESC-1927 > URL: https://issues.apache.org/jira/browse/XERCESC-1927 > Project: Xerces-C++ > Issue Type: Bug > Components: Validating Parser (DTD) > Affects Versions: 3.0.1, 3.1.1 > Reporter: Ben Griffin > Attachments: bim.dtd, bim.xml, foo.xml, foo.xsd, main.cpp > > > orphanGrammar(XMLUni::fgDTDEntityString) is causing a NoSuchElementException > exception when loading a DTD grammar after an xml file is parsed. > Essentially, it appears that the [dtd] record is not found in the pool once > an xml file has been parsed. > I don't quite understand what all that is about - but an example is included. > The exception is thrown at > #1 xercesc_3_1::RefHashTableOf<xercesc_3_1::Grammar, > xercesc_3_1::StringHasher>::orphanKey at RefHashTableOf.c:290 > #2 xercesc_3_1::GrammarResolver::orphanGrammar at GrammarResolver.cpp:348 > #3 xercesc_3_1::IGXMLScanner::loadDTDGrammar at IGXMLScanner.cpp:3061 > #4 xercesc_3_1::IGXMLScanner::loadGrammar at IGXMLScanner.cpp:2939 > #5 xercesc_3_1::XMLScanner::loadGrammar at XMLScanner.cpp:1772 > #6 xercesc_3_1::XMLScanner::loadGrammar at XMLScanner.cpp:1782 > #7 xercesc_3_1::DOMLSParserImpl::loadGrammar at DOMLSParserImpl.cpp:1057 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org