{
        if (!toDOM)
        {
          String name = helper.getQName(f);
          doc.addAttribute(name, idsString);
        }
        else
        {
          helper.populateNameInfo(nameInfo, f);
          Attr attr = document.createAttributeNS(nameInfo.getNamespaceURI(), nameInfo.getQualifiedName());
          attr.setNodeValue(idsString);      
          ((Element)currentNode).setAttributeNodeNS(attr);
          handler.recordValues(attr, o, f, values);
        }
      }