public void startElement(String namespaceURI,String localName,String qName,Attributes atts) throws SAXException {
  try {
    completeElement();
    started=true;
    out.write("<" + qName);
    if (atts != null) {
      int count=atts.getLength();
      for (int i=0; i < count; i++) {
        String name=atts.getQName(i);
        String value=atts.getValue(i);
        out.write(" " + name + "='"+ normalize(value.toCharArray(),0,value.length())+ "'");
      }
    }
  }
 catch (  IOException ioe) {
    throw new SAXException(ioe);
  }
}

public void startElement ( String namespaceURI , String localName , String qName , Attributes atts ) throws SAXException { try { completeElement ( ) ; started = true ; out . write ( "<" + qName ) ; if ( atts != null ) { int count = atts . getLength ( ) ; for ( int i = 0 ; i < count ; i ++ ) { String name = atts . getQName ( i ) ; String value = atts . getValue ( i ) ; out . write ( " " + name + "='" + normalize ( value . toCharArray ( ) , 0 , value . length ( ) ) + "'" ) ; } } } catch ( IOException ioe ) { throw new SAXException ( ioe ) ; } }
description of the method
