[EMAIL PROTECTED] wrote:
We also have SAXXMLValidator Class implementing ErrorHandler, which just
prints error messages to Logs.
The issue is, when the XML Document is malformed, errors are reported in
the logs and the execution proceeds ahead. There is no Exception thrown out
for any well-formedness error.
That's very strange and shouldn't happen. Does parsing continue, or does
parsing stop with no exception? Are you sure you aren't confusing
well-formedness and validity errors? They aren't the same, and don't
have the same effect.
If nothing else, you could always just rethrow the exception from your
error handler. You have to do this for validity errors. I don't think
you should have to do it for well-formedness errors though, but maybe
that's changed. Do you have a reproducible test case?
--
Elliotte Rusty Harold [EMAIL PROTECTED]
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]