I'm facing this followed issue : When i unmarshall object, xml return is look like this :
<a:root xmlns:a="urn:aaa" xmlns:b="urn:bbbb">
.....
<b:child>
......
</b:child>
</a:root>
instead
<root xmlns="urn:aaa">
.....
<child xmlns="urn:bbbb">
......
</child>
</root>
I have already tried to change my package-infos (class are on multiple packages) witch add @xmln notation with prefix="" however namespace move on other node.
@javax.xml.bind.annotation.XmlSchema(namespace = "urn:aaa",
elementFormDefault = XmlNsForm.QUALIFIED,
xmlns = {
@XmlNs(prefix="", namespaceURI="urn:aaa")
})
package aaa
import javax.xml.bind.annotation.XmlNs;
import javax.xml.bind.annotation.XmlNsForm;
IS there an option to force jaxb for using local namespaces without prefix ?