I had defined in my xsd an element of type xsd:
string to be minOccurs=0.
The idea is this is an embedded element in another tag and I don't want this element to appear at all in some instances.
JAXB mappin is used my apache cxf.
Now in
java, when I create an new of parent object, the element which I have defined as minOccurs=0 is having a null value.
How to avoid getting this null value, instead I don't want the object to be present at all when I do new of parenet object.