if (attrName == null) { attrName = attr.getNodeName(); }
  protected String getHTMLAttribute(String name)  {    if (hasAttributes())      {        NamedNodeMap attrs = getAttributes();        int len = attrs.getLength();        for (int i = 0; i < len; i++)          {            Node attr = attrs.item(i);            String attrName = attr.getLocalName();            if (attrName.equalsIgnoreCase(name))              {                return attr.getNodeValue();              }          }      }    return "";  }