output.write( "      <optionname>" ); output.write( option.getName() ); output.write( "</optionname>" ); output.write( CommonConstants.NL ); output.write( "      <optionvalue>" ); output.write( option.getValue().toString() ); output.write( "</optionvalue>" );
output.write( "<options>" );
    public static void saveOptions( Vector options ) {      try {        Writer output = new BufferedWriter( new OutputStreamWriter ( new FileOutputStream(new File(GAME_OPTIONS_FILE_NAME)) ) );        // Output the doctype and header stuff.          output.write( "<?xml version=\"1.0\"?>" ); //$NON-NLS-1$          output.write( CommonConstants.NL );          output.write( "<options>" ); //$NON-NLS-1$          output.write( CommonConstants.NL );          // Now the options themselves          for ( int i = 0; i < options.size(); i++ ) {            final IBasicOption option = (IBasicOption) options.elementAt(i);              output.write( "   <gameoption>" ); //$NON-NLS-1$            output.write( CommonConstants.NL );            output.write( "      <optionname>" ); //$NON-NLS-1$            output.write( option.getName() );            output.write( "</optionname>" ); //$NON-NLS-1$            output.write( CommonConstants.NL );            output.write( "      <optionvalue>" ); //$NON-NLS-1$            output.write( option.getValue().toString() );            output.write( "</optionvalue>" ); //$NON-NLS-1$            output.write( CommonConstants.NL );              output.write( "   </gameoption>" ); //$NON-NLS-1$            output.write( CommonConstants.NL );          }          // Finish writing.          output.write( "</options>" ); //$NON-NLS-1$          output.write( CommonConstants.NL );          output.flush();          output.close();      } catch (IOException e) {}    }