if (attrName == null) { attrName = attr.getNodeName(); }
  private Node getNamedItem(NamedNodeMap attrs, String name)  {    int len = attrs.getLength();    for (int i = 0; i < len; i++)      {        Node attr = attrs.item(i);        String attrName = attr.getLocalName();        if (name.equalsIgnoreCase(attrName))          {            return attr;          }      }    return null;  }