com.xmlmind.domutil
Class SaveDocument

java.lang.Object
  extended by com.xmlmind.domutil.SaveDocument

public final class SaveDocument
extends java.lang.Object

Utility allowing to save a W3C DOM document to an XML file.


Method Summary
static void save(org.w3c.dom.Document doc, java.io.File file)
          Save specified document to specified UTF-8, unindented, XML file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

save

public static void save(org.w3c.dom.Document doc,
                        java.io.File file)
                 throws java.io.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 saved
file - save file
Throws:
java.io.IOException - if for any reason, this method fails