Hi Alberto,

thanks for the fast answer.

On Thursday 17 January 2008 15:13, Alberto Massari wrote:
> Hi Sven,
> Xerces tries to recover from non-fatal errors, so you should install a
> DOMErrorHandler to get notified of any error, and return "false" to
> abort parsing.

But it was a fatal error, I tried a file with the first line:
"G<?xml version="1.0" encoding="UTF-8" standalone="no">"
With the 'G' this is no valid xml.

Further if xerces manages to recover from errors, I would expect, that I can 
access the elements and do not suddenly get a null-pointer.

> You can then check your error handler object for the number of errors
> occurred, and their associated descriptions.
>
I recently tried to install a DOMErrorHandler, but did not succeed yet.

Sven

Reply via email to