doc.addAttribute(XMLResource.HREF, href); doc.endEmptyElement();
if (!toDOM) { doc.addAttribute(XMLResource.HREF, href); doc.endEmptyElement(); } else { ((Element)currentNode).setAttributeNS(null, XMLResource.HREF, href); currentNode = currentNode.getParentNode(); }
  protected void saveHref(EObject remote, EStructuralFeature f)  {    String name = helper.getQName(f);    String href = helper.getHREF(remote);    if (href != null)    {      if (escapeURI != null)      {        href = escapeURI.convert(href);      }      doc.startElement(name);      EClass eClass = remote.eClass();      EClass expectedType = (EClass) f.getEType();      if (eClass != expectedType && (saveTypeInfo || expectedType.isAbstract()))      {        saveTypeAttribute(eClass);      }      doc.addAttribute(XMLResource.HREF, href);      doc.endEmptyElement();    }  }