public void serialize( final javax.xml.namespace.QName parentQName, javax.xml.stream.XMLStreamWriter xmlWriter, boolean serializeType) throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException { // We can safely assume an element has only one type associated with it if (localSyncItemDataReq == null) { java.lang.String namespace = "http://www.topsunit.com/rms"; writeStartElement(null, namespace, "syncItemDataReq", xmlWriter); // write the nil attribute writeAttribute("xsi", "http://www.w3.org/2001/XMLSchema-instance", "nil", "1", xmlWriter); xmlWriter.writeEndElement(); } else { localSyncItemDataReq.serialize(MY_QNAME, xmlWriter); } }