public final static void main ( String [ ] args ) throws IOException { Writer writer = new OutputStreamWriter ( System . out , "utf-8" ) ; XMLOutputter outputter = new XMLOutputter ( writer , "iso-8859-1" ) ; writeXML ( outputter ) ; System . out . println ( ) ; System . out . println ( ) ; outputter . reset ( writer , "utf-8" ) ; writeXML ( outputter ) ; }
Main function .