Class XMLWriter

Object
XMLWriter

public class XMLWriter extends Object
Writes XML in the form of a Document to the file-system.
Author:
Owen Feehan
  • Method Details

    • writeXMLToFile

      public static void writeXMLToFile(Document document, Path path) throws IOException
      Writes a XML-document to the file-system.
      Parameters:
      document - the XML-document
      path - the path to write to on the file-system
      Throws:
      IOException - if any error occurs writing the XML file to the file-system.