• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB parser

 
Stefan Gerber
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
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="http://test.com/namespace" " 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 <{http://test.com/namespace}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?
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic