Yes but what I need is to get precise information about the error such as the
name of the violated constraint, its value, the name
of the tag/attribute which has incorrect value, ... without extracting them
from the error message string (that's not very clean to
do that !).
"Tony Chen"
<[EMAIL PROTECTED] Pour : "'[EMAIL PROTECTED]'"
<[EMAIL PROTECTED]>, "'Gopal Sharma'"
BONE.com> <[EMAIL PROTECTED]>
cc :
08/21/2002 Objet : RE: How to extract
information from validation error codes
03:14 PM
Veuillez
r�pondre �
xerces-j-user
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:[EMAIL PROTECTED]
Sent: Wednesday, August 21, 2002 7:26 AM
To: [EMAIL PROTECTED]
Subject: Re: How to extract information from validation error codes
[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]