Title: RE: Getting more info on SAXExceptions

Gordon,

You can implement the org.xml.sax.ErrorHandler and then look at the API's for SAXParseException to get line no, column no etc. Note: you got to register the error handler so as to use this functionality.

Thanks
Pradeep

> -----Original Message-----
> From: Gordon Ross [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 27, 2001 10:20 AM
> To: [EMAIL PROTECTED]
> Subject: Getting more info on SAXExceptions
>
>
> When using the SAX API, if the parser encounters an error,
> you get a SAXException. However, the SAXException doesn't
> give you very much information.
>
> Is there any way to get more information about the error
> (location in file, etc) so that I can give feedback to users ?
>
> Thanks,
>
> GTG
>
> Gordon Ross,
> Network Manager,
> Countryside Council for Wales
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Reply via email to