| Author |
JaxbElement creating namespace in xml
|
Suben Naidoo
Greenhorn
Joined: Jan 27, 2011
Posts: 1
|
|
Hi
How do i get JAxbelement NOT to create a namespace in XML. I need to create JaxbElement because when i marshall i get an error no @XMLRootElement found.
I do not want to change the XSD to fix this issue as the XSD is a local standard.
I added the root element using JAXBElement but it creates a namespace which causes problems when unMarshalling the xml.
I get the following error when unMarshalling the XML:
Error [1,189]: cvc-complex-type.2.4.a: Invalid content was found starting with element 'CorruptBatchContinueOnError'. One of '{"http://schemas.phisc.org.za/draft/claim":CorruptBatchContinueOnError}' is expected.
Here is the XML created when using the above code to create the root element:
|
 |
 |
|
|
subject: JaxbElement creating namespace in xml
|
|
|