code: private void checkNotParsing (String type, String name)
      throws SAXNotSupportedException
      {
      if (parsing) {
          throw new SAXNotSupportedException("Cannot change " +
                             type + ' ' +
                             name + " while parsing");
  
      }
      }
docs: Throw an exception if we are parsing.
  
  <p>Use this method to detect illegal feature or
  property changes.</p>
  
  @param type The type of thing (feature or property).
  @param name The feature or property name.
  @exception SAXNotSupportedException If a
  document is currently being parsed.