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 ; }
Look up the index of an attribute by raw XML 1 . 0 name .