Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JAXB javax.xml.bind.UnmarshalException Unexpected element

Reply
Thread Tools

JAXB javax.xml.bind.UnmarshalException Unexpected element

 
 
Norberto Eichstaedt
Guest
Posts: n/a
 
      01-17-2004
Hi,

If the input XML structure is invalid, the expection
"javax.xml.bind.UnmarshalException Unexpected element xxx" happens.

The problem is that for big XML files is really hard identify the
element that trigger the error since the exception does not identify
the location.

Is there a way to locate the point in the XML file that made JAXB
trigger the exception?

Thanks,

Norberto Eichstaedt
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JAXB marshall object with null date field to blank xml element sai krishna XML 0 10-24-2008 10:33 AM
Specifying element classnames using XJC JAXB ant task Robert Reeves Java 0 11-11-2005 03:04 AM
Re: JAXB how to drop tag element in xml Enrique Java 0 04-01-2004 05:32 AM
Q: JAXB and default in the element tag (plus some other Q's) Mark Stafford Java 0 01-06-2004 05:30 PM
Q: JAXB and default in the element tag (plus some other Q's) Mark Stafford XML 0 01-06-2004 05:30 PM



Advertisments