public final class SaveDocument extends Object
Modifier and Type | Method and Description |
---|---|
static void |
save(Document doc,
File file)
Save specified document to specified UTF-8, unindented, XML file.
|
public static void save(Document doc, File file) throws IOException
Does not save the DOCTYPE of the document if any.
doc
- document to be savedfile
- save fileIOException
- if for any reason, this method fails