How do I write this document to the local filesystem?
public void docToFile(org.w3c.dom.Document document, URI path) throws Exception {
    File file = new File(path);
}
I need to iterate the document, or might there be a "to xml/html/string" method?  I was looking at:
document.getXmlEncoding();
Not quite what I'm after -- but something like that.  Looking for the String representation and then to write that to file like:
Path file = ...;
byte[] buf = ...;
Files.write(file, buf);
https://docs.oracle.com/javase/tutorial/essential/io/file.html
 
    