doc.addAttribute(helper.getQName(entryFeature), svalue);
else { helper.populateNameInfo(nameInfo, entryFeature); ((Element)currentNode).setAttributeNS(nameInfo.getNamespaceURI(), nameInfo.getQualifiedName(), svalue); }
  protected void saveAttributeFeatureMap(EObject o, EStructuralFeature f)  {    List values = (List)helper.getValue(o, f);    int size = values.size();    for (int i = 0; i < size; i++)    {      FeatureMap.Entry entry = (FeatureMap.Entry)values.get(i);      EStructuralFeature entryFeature = entry.getEStructuralFeature();      Object value = entry.getValue();      if (entryFeature instanceof EReference)      {        throw new UnsupportedOperationException();        // saveElement((EObject)value, entryFeature);      }      else      {        EDataType d = (EDataType)entryFeature.getEType();        EPackage ePackage = d.getEPackage();        EFactory fac = ePackage.getEFactoryInstance();        String svalue = helper.convertToString(fac, d, value);                if (escape != null)        {          svalue = escape.convertText(svalue);        }        doc.addAttribute(helper.getQName(entryFeature), svalue);      }    }  }