[email protected]
[Top] [All Lists]

repairing document while parsing?

Subject: repairing document while parsing?
From: Derek Alexander
Date: Wed, 22 Jul 2009 06:55:23 -0700 PDT

Is there any way with xerces (or any other xml parser you know of) to plug
in some kind of error handler that can attempt to repair the document being
parsed, rather than just log errors.

Specific case I have is xhtml documents that may have attribute values that
aren't escaped properly, e.g., href="http://some.server/path?blah&foo=baa";

What I want to do is catch the error that &foo is not a known entity and
replace it with &foo as it ought to be, and have the parser carry on
with that.


View this message in context: 
Sent from the Xerces - J - Users mailing list archive at Nabble.com.

To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

<Prev in Thread] Current Thread [Next in Thread>