code: 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;
              }
            }
          }
        }
      }
    }
docs: Check to see if an ID attribute matched the #id, called
  from startElement.
  
  @param attributes The specified or defaulted attributes.