public void save(File file) throws IOException {
        try (FileOutputStream out = new FileOutputStream(file)) {
            save(out);
        }
    }
public void save ( File file ) throws IOException { try ( FileOutputStream out = new FileOutputStream ( file ) ) { save ( out ) ; } }
Save this XML into the given file.
@param file the file
@throws IOException on error