private void checkForFragmentID(Attributes attributes){
  if (!m_shouldProcess) {
    if ((null != attributes) && (null != m_fragmentIDString)) {
      int n=attributes.getLength();
      for (int i=0; i < n; i++) {
        String name=attributes.getQName(i);
        if (name.equals(Constants.ATTRNAME_ID)) {
          String val=attributes.getValue(i);
          if (val.equalsIgnoreCase(m_fragmentIDString)) {
            m_shouldProcess=true;
            m_fragmentID=m_elementID;
          }
        }
      }
    }
  }
}

private void checkForFragmentID ( Attributes attributes ) { if ( ! m_shouldProcess ) { if ( ( null != attributes ) && ( null != m_fragmentIDString ) ) { int n = attributes . getLength ( ) ; for ( int i = 0 ; i < n ; i ++ ) { String name = attributes . getQName ( i ) ; if ( name . equals ( Constants . ATTRNAME_ID ) ) { String val = attributes . getValue ( i ) ; if ( val . equalsIgnoreCase ( m_fragmentIDString ) ) { m_shouldProcess = true ; m_fragmentID = m_elementID ; } } } } } }
check to see if an id attribute matched the # id , called from startelement .
