JAXB javax.xml.bind.UnmarshalException Unexpected element

Discussion in 'Java' started by Norberto Eichstaedt, Jan 17, 2004.

  1. 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
    Norberto Eichstaedt, Jan 17, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Enrique
    Replies:
    0
    Views:
    429
    Enrique
    Apr 1, 2004
  2. Replies:
    1
    Views:
    693
    Esmond Pitt
    Mar 27, 2005
  3. Anna
    Replies:
    0
    Views:
    1,994
  4. marco
    Replies:
    6
    Views:
    22,036
    qcarver
    May 18, 2007
  5. sai krishna
    Replies:
    0
    Views:
    1,612
    sai krishna
    Oct 24, 2008
Loading...

Share This Page