I'm creating a JAXBElement<BigInteger>
element with an ObjectFactory
.
The object is created with a null
value, as the schema for this field indicates that it has a nillable
attribute.
During the marshalling to xml, the output file shows:
<TaxCode xsi:nil="true"/>
How can I have it write <taxCode/>
only?