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=5153>. 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=5153 Pull parsing of prolog broken Summary: Pull parsing of prolog broken Product: Xerces2-J Version: 2.0.0 [beta 3] Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: Other Component: Other AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When using pull parsing (eg XMLPullParserConfiguration.parse(false)), Xerces barfs on almost anything in the prolog other than a DOCTYPE decl. For example, it gives an error for: <!-- comment --> <doc/> Here's a fix: *** XMLDocumentScannerImpl.java~ Tue Oct 30 03:51:56 2001 --- XMLDocumentScannerImpl.java Wed Nov 28 11:23:48 2001 *************** *** 723,734 **** } } } while (complete || again); - - if (fEntityScanner.scanChar() != '<') { - reportFatalError("RootElementRequired", null); - } - setScannerState(SCANNER_STATE_ROOT_ELEMENT); - setDispatcher(fContentDispatcher); } // premature end of file --- 723,728 ---- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
