Package utils
Class XMLWriter
java.lang.Object
utils.XMLWriter
This class is used to write the XML document to the XML file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeToXML
(Document document, String filePath) Write the formatted XML document to the XML file.
-
Constructor Details
-
XMLWriter
public XMLWriter()
-
-
Method Details
-
writeToXML
Write the formatted XML document to the XML file.- Parameters:
document
- The XML document.filePath
- The path of the XML file.- Throws:
TransformerException
-