public void startElement(String namespaceURI,String localName,String qName,Attributes attr) throws SAXException {
  try {
    stopTerminator();
    if (isIndenting()) {
      if (curIndent > 0) {
        indentMe();
      }
      curIndent++;
    }
    if (w != null) {
      w.write('<');
      w.write(qName);
      if (attr != null) {
        for (int i=attr.getLength(); i > 0; ) {
          w.write(' ');
          String name=attr.getQName(--i);
          w.write(name);
          if (delayedPrefixes != null) {
            delayedPrefixes.remove(name);
          }
          w.write("=\"");
          writeCData(attr.getValue(i));
          w.write('"');
        }
      }
      if (delayedPrefixes != null && delayedPrefixes.size() > 0) {
        for (        Map.Entry<String,String> entry : delayedPrefixes.entrySet()) {
          w.write(' ');
          w.write(entry.getKey());
          w.write("=\"");
          w.write(entry.getValue());
          w.write('"');
        }
        delayedPrefixes.clear();
      }
    }
    state=STATE_IN_START_ELEMENT;
  }
 catch (  java.io.IOException e) {
    throw new SAXException(e);
  }
}

public void startElement ( String namespaceURI , String localName , String qName , Attributes attr ) throws SAXException { try { stopTerminator ( ) ; if ( isIndenting ( ) ) { if ( curIndent > 0 ) { indentMe ( ) ; } curIndent ++ ; } if ( w != null ) { w . write ( '<' ) ; w . write ( qName ) ; if ( attr != null ) { for ( int i = attr . getLength ( ) ; i > 0 ; ) { w . write ( ' ' ) ; String name = attr . getQName ( -- i ) ; w . write ( name ) ; if ( delayedPrefixes != null ) { delayedPrefixes . remove ( name ) ; } w . write ( "=\"" ) ; writeCData ( attr . getValue ( i ) ) ; w . write ( '"' ) ; } } if ( delayedPrefixes != null && delayedPrefixes . size ( ) > 0 ) { for ( Map . Entry < String , String > entry : delayedPrefixes . entrySet ( ) ) { w . write ( ' ' ) ; w . write ( entry . getKey ( ) ) ; w . write ( "=\"" ) ; w . write ( entry . getValue ( ) ) ; w . write ( '"' ) ; } delayedPrefixes . clear ( ) ; } } state = STATE_IN_START_ELEMENT ; } catch ( java . io . IOException e ) { throw new SAXException ( e ) ; } }
starts a new element .
