code: public int getIndex(String qName)
    {
      for(int i=m_attrs.getLength()-1;i>=0;--i)
      {
        Node a=m_attrs.item(i);
        if(a.getNodeName().equals(qName) )
      return i;
      }
      return -1;
    }
docs: Look up the index of an attribute by raw XML 1.0 name.
  
  @param qName The qualified (prefixed) name.
  @return The index of the attribute, or -1 if it does not
  appear in the list.