String name = helper.getQName(f); doc.startElement(name); doc.addAttribute(XSI_NIL, "true"); doc.endEmptyElement(); declareXSI = true;
saveNil(f); if (toDOM) { handler.recordEObject(currentNode.getLastChild(), null, o, f); if (DEBUG_DOM) { System.out.println("-->nil: " + currentNode.getLastChild().getNodeName() + "; container:" + o.eClass().getName()+ ";feature: " + f.getName()); } }
  protected void saveNil(EStructuralFeature f)  {    String name = helper.getQName(f);    doc.startElement(name);    doc.addAttribute(XSI_NIL, "true");    doc.endEmptyElement();    declareXSI = true;  }