Mar 25
|
When an XML parser encounters an error while parsing it generally just gives up. Sometimes this is not what we want and would instead would like it to soldier on.
In these case Xerces has a useful feature that allows you to instruct it to continue parsing
parser.setFeature( "http://apache.org/xml/features/continue-after-fatal-error", true);
Once that is set the parser will happily continue parsing even after it has encountered an error.