468,268 Members | 1,586 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,268 developers. It's quick & easy.

Customizing JAXB Error

I am using JAXB for parsing the XML file. When any validation error occurs
like a particular tag value in the XML file is not in sync with what is
defined in the schema, the JAXB is not displaying the tag name in the
exception message. It just displays the message like – “the value does not
match the regular expression "[A-Z]{2,2}".

Is there anyway in retrieving the tag name when a validation error occurs in
JAXB?

--
techeek
http://oxyin.com/techeek
Jan 7 '08 #1
1 2320
Techeek wrote:
I am using JAXB for parsing the XML file. When any validation error occurs
like a particular tag value in the XML file is not in sync with what is
defined in the schema, the JAXB is not displaying the tag name in the
exception message. It just displays the message like – “the value does not
match the regular expression "[A-Z]{2,2}".

Is there anyway in retrieving the tag name when a validation error occurs in
JAXB?
You might want to look for a Java specific newsgroup or mailing list.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Jan 7 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by jesper | last post: by
1 post views Thread by Sony Antony | last post: by
reply views Thread by Brett Selleck | last post: by
reply views Thread by dt | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.