HTML is formatted as HTML 4.01, without strict XML unary tags. This is for
legacy HTML content. Modern XHTML should be written using {@link toXHTML()}.
Write the document to stdout (usually the client) or to a file.
The path to the file into which the XML should be written. if
this is NULL, data will be written to STDOUT, which is usually
sent to the remote browser.