Tjena,
you can (try to) cast the returned errors in your error list to an
XmlValidationError;
XmlValidationError validationError = (XmlValidationError)error;
QName offendingQName = validationError.getOffendingQName();
regards,
/Ole
eviware.com
Fredrik Petersson (Kentor) wrote:
Yes, that is what I have done. And my problem are that I cant see any
method to get the name of the tag containing the error.
I get the errormessage and the errorcode.
Anyone else?
/Fredrik
------------------------------------------------------------------------
*From:* Cezar Andrei [mailto:[EMAIL PROTECTED]
*Sent:* den 5 februari 2007 18:46
*To:* [email protected]
*Subject:* RE: Howto get name of tag in XMLError
Use boolean validate(XmlOptions options); method and check out it’s
javadoc on how to get details about errors.
Cezar
------------------------------------------------------------------------
*From:* Fredrik Petersson (Kentor) [mailto:[EMAIL PROTECTED]
*Sent:* Monday, February 05, 2007 7:57 AM
*To:* [email protected]
*Subject:* Howto get name of tag in XMLError
Hi!
When MyXMLObject.validate() fails I would like to get the name of the
tag where the error occurred, is it possible to get the name, and if, how?
Best regards!
/Fredrik
_______________________________________________________________________
Notice: This email message, together with any attachments, may contain
information of BEA Systems, Inc., its subsidiaries and affiliated
entities, that may be confidential, proprietary, copyrighted and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]