Element elem = document.createElementNS(nameInfo.getNamespaceURI(), nameInfo.getQualifiedName()); if (DEBUG_DOM) { System.out.println("-->href: "+elem.getNodeName()+"; eObject: "+remote.eClass().getName()+"; container:"+remote.eContainer()+"; "+f.getName()); } handler.recordEObject(elem, remote, remote.eContainer(), f);
Element elem = document.createElementNS(nameInfo.getNamespaceURI(), nameInfo.getQualifiedName());
  protected void saveHref(EObject remote, EStructuralFeature f)  {       String href = helper.getHREF(remote);    if (href != null)    {      if (escapeURI != null)      {        href = escapeURI.convert(href);      }      if (!toDOM)      {        String name = helper.getQName(f);        doc.startElement(name);      }      else      {        helper.populateNameInfo(nameInfo, f);        Element elem = document.createElementNS(nameInfo.getNamespaceURI(), nameInfo.getQualifiedName());        if (DEBUG_DOM)        {          System.out.println("-->href: "+elem.getNodeName()+"; eObject: "+remote.eClass().getName()+"; container:"+remote.eContainer()+"; "+f.getName());        }        handler.recordEObject(elem, remote, remote.eContainer(), f);        currentNode = currentNode.appendChild(elem);      }      EClass eClass = remote.eClass();      EClass expectedType = (EClass) f.getEType();      if (eClass != expectedType && (saveTypeInfo || expectedType.isAbstract()))      {        saveTypeAttribute(eClass);      }      if (!toDOM)      {        doc.addAttribute(XMLResource.HREF, href);        doc.endEmptyElement();      }      else      {        ((Element)currentNode).setAttributeNS(null, XMLResource.HREF, href);        currentNode = currentNode.getParentNode();      }    }  }