tagopen.append(atts.getValue(i));
tagopen.append(toEntities(atts.getValue(i)));
   public void startElement (String uri, String name,                             String qName, Attributes atts)   {    if( childcounter == null ) {       printWithNL(">",prettyPrint );      childcounter =HAS_CONTENT;    }    StringBuffer tagopen = new StringBuffer();    if( state == STATE_TAG && !prettyPrint)      tagopen.append("\n");    tagopen.append('<');    tagopen.append( qName );  //    tagopen.append(' ');    if( atts != null && atts.getLength() != 0 ) {      for( int i = 0;i<atts.getLength();i++ ) {        tagopen.append(' ');        tagopen.append(atts.getQName(i));        tagopen.append('=');        tagopen.append('"');        tagopen.append(atts.getValue(i));        tagopen.append('"');      }    }    csstack.push( childcounter );    childcounter = null;//      if( assumeNoChildren )//        tagopen.append("/>");//      else//        tagopen.append('>');    pw.print((prettyPrint ? IND.substring(0,indent) : "")  + tagopen.toString());    indent ++;    state = STATE_TAG;   }