Skip to main content

(JAXB 1) Specifying namespace

1 reply [Last post]
joserra
Offline
Joined: 2007-11-14
Points: 0

Hi,

We need to marshall objects with namespace prefix. We generate this

2345

but we need to generate this XML with namespace prefix, how can we do it so we get this? Is there any way to say marshaller to get that namespace?

2345

Thanks!

Message was edited by: joserra

Message was edited by: joserra

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
lexi
Offline
Joined: 2004-04-09
Points: 0

Well, you may try providing a namespace prefix mapper.

http://java.sun.com/webservices/docs/1.5/jaxb/vendorProperties.html