¡@

Home 

java Programming Glossary: xyzdate

How to represent null value as empty element with JAXB?

http://stackoverflow.com/questions/11743306/how-to-represent-null-value-as-empty-element-with-jaxb

public class Root private XMLGregorianCalendar xyzDate @XmlElement name XYZDate required true nillable true @XmlJavaTypeAdapter.. public XMLGregorianCalendar getXyzDate return xyzDate public void setXyzDate XMLGregorianCalendar xyzDate this.xyzDate.. return xyzDate public void setXyzDate XMLGregorianCalendar xyzDate this.xyzDate xyzDate Option #2 Using MOXy's @XmlNullPolicy..

How to represent null value as empty element with JAXB?

http://stackoverflow.com/questions/11743306/how-to-represent-null-value-as-empty-element-with-jaxb

with JAXB My XSD structure is like the below element name XYZDate maxOccurs 1 minOccurs 1 nillable true type date When I set the.. Generation from JAXB marshaling it produce the output with XYZDate xmlns xsi http www.w3.org 2001 XMLSchema instance xsi nil true.. xsi nil true Whereas in the result I want the out put as XYZDate i.e. do not want the schema and other attribute. I get rid of..