public void serialize(Document doc, File file) throws IOException {
        serialize(doc, new FileOutputStream(file));
    }
Serialize {@code doc} to {@code out}

@param doc the document to serialize.
@param file the file to serialize to.
@throws IOException for various error conditions
jme3-plugins/src/xml/java/com/jme3/export/xml/DOMSerializer.java