I'm working with an XSD schema file (that I cannot change) that defines element XXX as following:
<xsd:element name="XXX" type="Date" minOccurs="0"/>
This produces a java.util.Date in the generated class.
I would need to change how the field is marshalled to XML: if the attribute is null, I would like to produce an empty tag, like if the xsd was:
<xsd:element name="XXX" type="Date" minOccurs="0" nillable=true/>
This produces a JaxbElement in the generated class.
Is it possible to do something like this via Jaxb bindings?
Regards
Giulio