Skip to main content
1 reply [Last post]
birdman
Offline
Joined: 2006-03-09
Points: 0

I have a XSD file who defines a datamodel.
I have generated the java classes with the xjc ant task.
When I print the JAXBElement my root node is like:

I haven´t defined this namespace and I don´t know how to control it because I want a root node like:

Could someone help me?

Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
super_kohsuke
Offline
Joined: 2006-01-27
Points: 0

You apparently haven't included all the information, so it's difficult to tell, but take a look at the "namespace-prefix" example in the distribution.