Carl Christianson wrote: > > Hi all, > My question is if you have a mal-formed XML record. Throwing a fatal > exception is there any way to continue parsing the rest of the document? > example: > <Record1> data </Record1> > <Record2> data </Record2> > <Record3> data </doesntMatch> > <Record4> data </Record4> > > >From what I've read and the error handler that i've implemented it seems > that parsing can not continue. However if you have a bulk data load of > 100K+ records and only have one record that is invalid it would be nice if > you could somehow recover from this. I've tried implementing an > ErrorHandler to handle this but parsing seems to stop regardless. Is there > some way to get around this?
Nope. This piece of XML is not just "invalid", it is not wellformed. The XML spec is very clear on the fact that this is a fatal error and the processor _must_ stop normal processing. These questions would be better sent to xerces-j-user. Thanks. -- Arnaud Le Hors - IBM, XML Standards Strategy Group / W3C AC Rep. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
