protected void writeHeader(String enc) throws IOException {
  writer.write("<?xml");
  writeAttribute("version","1.0");
  if (enc != null) {
    writeAttribute("encoding",enc);
  }
  if (standalone != null) {
    writeAttribute("standalone",(standalone ? "yes" : "no"));
  }
  writer.write("?>");
}

protected void writeHeader ( String enc ) throws IOException { writer . write ( "<?xml" ) ; writeAttribute ( "version" , "1.0" ) ; if ( enc != null ) { writeAttribute ( "encoding" , enc ) ; } if ( standalone != null ) { writeAttribute ( "standalone" , ( standalone ? "yes" : "no" ) ) ; } writer . write ( "?>" ) ; }
writes basic xml headers including xml version , standalone , and encoding .
