mrglavas 2003/10/17 10:34:30
Modified: java/src/org/apache/xerces/impl
XMLDocumentFragmentScannerImpl.java
Log:
Fix an infinite loop when processing a DOCTYPE that appears
where content is expected. This problem only occurs when
continue-after-fatal-error is set to true.
The parser is only expecting content to appear here, so it seems
reasonable to process the rest of the 'DOCTYPE' as content,
since we're in an unrecoverable error state anyways.
Revision Changes Path
1.37 +2 -1
xml-xerces/java/src/org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.java
Index: XMLDocumentFragmentScannerImpl.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xerces/impl/XMLDocumentFragmentScannerImpl.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- XMLDocumentFragmentScannerImpl.java 19 Aug 2003 19:06:13 -0000 1.36
+++ XMLDocumentFragmentScannerImpl.java 17 Oct 2003 17:34:30 -0000 1.37
@@ -1621,6 +1621,7 @@
case SCANNER_STATE_DOCTYPE: {
reportFatalError("DoctypeIllegalInContent",
null);
+ setScannerState(SCANNER_STATE_CONTENT);
}
}
} while (complete || again);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]