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=7215>. 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=7215 SAX2XMLReader aborts with missing DTD when validation is disabled Summary: SAX2XMLReader aborts with missing DTD when validation is disabled Product: Xerces-C++ Version: 1.7.0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: SAX/SAX2 AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] SAX2XMLReader *parser = XMLReaderFactory::createXMLReader(); parser->setFeature(XMLUni::fgSAX2CoreValidation, false); The document looks like so... -------------------------------------------------- <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE procind SYSTEM "Xpressfeed.dtd"> ..... -------------------------------------------------- When parser->parse() is called it dies with XpressfeedHandler::fatalError(): An exception occurred! Type:RuntimeException, Message:Could not open DTD file '/home/stephenc/xml/Xpressfeed.dtd' Even though validation is not actually being done. I believe the problem lies in XMLScanner::scanProlog() When it encounters a doctype flag it tries to load the DTD for it, regardless of whether fValidate is true. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
