public void writeTag(String tag,Object value){
  if (value != null) {
    writer.println(indent + "<" + tag+ ">"+ escape(value.toString())+ "</"+ tag+ ">");
  }
 else {
    writer.println(indent + "<" + tag+ "></"+ tag+ ">");
  }
}

public void writeTag ( String tag , Object value ) { if ( value != null ) { writer . println ( indent + "<" + tag + ">" + escape ( value . toString ( ) ) + "</" + tag + ">" ) ; } else { writer . println ( indent + "<" + tag + "></" + tag + ">" ) ; } }
writes & lt ; tag & gt ; value & lt ; / tag & gt ; to output stream
