How to create XSD definition in such a way that JAXB created classes from such XSDs will generate XML with empty XML tag if the field is null.
We can use nillable=true
but it adds nil=true
data in generated XML. Generated XML should be with clean empty tag element if an element is null.