Thanks for the information.
This indeed gives me the line/col position where Xerces throws the
exception,
which turns out to often be inside the element qname and not at an
element start or end. So:

a) i need to highlight the offending elements and thus need to know
where they start and end. is there a way inside my startElement and
endElement handlers to get the position info too? (i don't have an
exception there that carries the info)

b) is there a way to get an error type id (ideally something numeric) or
do i have to regexp-match each SAXParseException's message against every
known error string to know what type of sax parsing error it is (e.g.
missing end-tag, invalid character, etc.)?

Michael Glavassevich wrote:
> The SAXParseExceptions [1] reported to your ErrorHandler and thrown by the 
> XMLReader contain location information. See getColumnNumber() and 
> getLineNumber().
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to