helper.populateNameInfo(nameInfo, f); ((Element)currentNode).setAttributeNS(nameInfo.getNamespaceURI(), nameInfo.getQualifiedName(),id);
helper.populateNameInfo(nameInfo, f); Attr attr = document.createAttributeNS(nameInfo.getNamespaceURI(), nameInfo.getQualifiedName()); attr.setNodeValue(id); ((Element)currentNode).setAttributeNodeNS(attr); handler.recordValues(attr, o, f, value);
  protected void saveIDRefSingle(EObject o, EStructuralFeature f)  {    EObject value = (EObject)helper.getValue(o, f);    if (value != null)    {      String id = helper.getIDREF(value);      if (!toDOM)      {        String name = helper.getQName(f);               doc.addAttribute(name, id);      }      else      {        helper.populateNameInfo(nameInfo, f);                ((Element)currentNode).setAttributeNS(nameInfo.getNamespaceURI(), nameInfo.getQualifiedName(),id);      }        }  }