Paul,
The SAXParseException class has the getColumnNumber()and getLineNumber()
methods to show where the error occurred.
Regards,
Rob Griffin
Quest Software
E-mail: [EMAIL PROTECTED]
Web: http://www.quest.com
> -----Original Message-----
> From: Paul Sijpkes [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 24 July 2002 12:22 PM
> To: [EMAIL PROTECTED]
> Subject: lack of detail in xerces 1.4.4 Datatype errors
>
>
> Hi all,
>
> I'm using Struts 1.1 and am validating using an XSD file for my struts
> forms.
>
> I've implemented the ErrorHandler interface in order to retrieve
> Datatype errors. This works great, except for the precious little
> information returned by the SAXParseException.
>
> For example:
> "org.xml.sax.SAXParseException: Datatype error: '' is not a decimal."
>
> There is no indication of which attribute is not a decimal! This is
> incredibly frustrating, is there anyway of finding out which attribute
> is not validating correctly? Another parser library or maybe a method
> I can access?
>
> I've noticed Xerces 2 gives much more informative errors but this is
> just not an option for me as I'm using Tomcat 4 and Struts which both
> depend on Xerces 1.4.4.
>
> Any help would be greatly appreciated!
>
> cheers,
> Paul
>
> Paul Sijpkes
> Analyst/Programmer
> Hammond Street Developments
> Telephone (B/H): 03 9875 5904
> Email: [EMAIL PROTECTED]
>
>
