question: 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 ( "?>" ) ; }
target:  Writes basic XML headers including XML version, standalone, and encoding.