Hallo,
I have a problem with the Namespace of the XML file, which is created by
the marshaller.
Here is the Element Creator of the ObjectFactoryt
@XmlElementDecl(namespace = "essence", name = "IPComponent")
public JAXBElement<IPComponent> createIPComponentRoot(IPComponent
value) {
return new JAXBElement<IPComponent>(_IPComponentRoot_QNAME,
IPComponent.class, null, value);
}
I'm hoping with such Element Creator to get an XML file which looked
like this:
<essence:IPComponentRoot Name="Bus" Id="B01">
But instead, I got it like this:
<ns2:IPComponentRoot Name="Bus" Id="B01" xmlns:ns2="essence">
What can I do to change this namespace without using a "defined
namespace symbol" which in this case "ns2"?
Can I get the XML file which is expected?
Is there any place in the Code I should change?
As Information, I made a subclass of the IPComponent class, but using
the original (superclass) to create the JAXBElement.
Thanks in advance for the help.
Best regards,
Heru