Hi, Attached is an XML document that will trigger an infinite recursion in Xerces2 if parsed. This is without stopping at fatal errors, but it seems it cannot recover properly enough to parse the rest of the document. I have found a patch to avoid the infinite recursion, but I'm not happy with it because it would be better to recover from the error after the incorrect ENTITY declaration, to allow to find more errors. As an aside, I found that there was no message declaration for the EXPECTED_SQUARE_BRACKET_TO_CLOSE_INTERNAL_SUBSET resource. I am ready to send my patch but would prefer a little help or guidance in recovering better in XMLDTDScannerImpl.scanEntityDecl() Or is it normal that any fatalError is unrecoverable and any attempt to go further may let xerces2 loop forever ?
Thanks. -- # Stef Epardaud, # Teachers have potentially more power than military, # Java Defeater # the former can teach us how to not need the latter. # Earth # Lunatech Research, # Solar System # soon we'll quit researching and start finding...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE wetgeving [ <!ENTITY W CDATA ""> ]> <wetgeving> C </wetgeving>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
