Package com.xmlmind.domutil
Class SaveDocument
- java.lang.Object
-
- com.xmlmind.domutil.SaveDocument
-
public final class SaveDocument extends Object
Utility allowing to save a W3C DOM document to an XML file.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
save(Document doc, File file)
Save specified document to specified UTF-8, unindented, XML file.
-
-
-
Method Detail
-
save
public static void save(Document doc, File file) throws IOException
Save specified document to specified UTF-8, unindented, XML file.Does not save the DOCTYPE of the document if any.
- Parameters:
doc
- document to be savedfile
- save file- Throws:
IOException
- if for any reason, this method fails
-
-