Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB parser

Stefan Gerber
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use jaxb to generate an xml file. Now it happens that the xml file looks different depending on the computer (installation) i run the programm.

The structure of the two xml file is the same but in one file the Tag "xmlns="" " is missing in the root element.
If i want marshal the xml file again i get the following exception:

javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"Document"). Expected elements are <{}Document>

Any idea why this can happen? I think that it might be possible that an other parser is used to generate the xml file. How can i find out which parser is used by jaxb?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic