[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-j-user
Subject: RE: How to extract information from validation error codes
From: "Tony Chen" <Tony.Chen () LABONE ! com>
Date: 2002-08-21 13:14:22
[Download RAW message or body]
If you create an ErrorHandler as in one of the sample, you could use method
of SAXParseException. There are a few methods like getLineNumber,
getColumnNumber, getMessage. They are not that precise, but quite helpful.
-----Original Message-----
From: Gopal Sharma [mailto:Gopal.Sharma@Sun.COM]
Sent: Wednesday, August 21, 2002 7:26 AM
To: xerces-j-user@xml.apache.org
Subject: Re: How to extract information from validation error codes
Nicolas.GOLOUBENKO@sercel.fr wrote:-
>
> I use xerces DOM parser for validation against XML schema. The validation
works correctly but it is quite hard to get information
> about errors. Does anybody know if it is possible to use the error codes
to
extract infromation about the error without having to
> decode the message string (to get the type of schema constraint violated
for
example) ?
>
> Ex. : Validation error : '[error] :1:269: cvc-complex-type.2.2 ...'
> What does the '2.2' error code mean ??
>
Please visit http://www.w3.org/TR/xmlschema-1/#outcomes . XML Schema Spec
defines these unique names for all the constraints.
Thanks
- Gopal
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
This transmission (and any information attached to it) may be confidential and is \
intended solely for the use of the individual or entity to which it is addressed. If \
you are not the intended recipient or the person responsible for delivering the \
transmission to the intended recipient, be advised that you have received this \
transmission in error and that any use, dissemination, forwarding, printing, or \
copying of this information is strictly prohibited. If you have received this \
transmission in error, please immediately notify LabOne at (800)388-4675.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic