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