WriteXMLDeclaration Method
Writes an XML declaration at the top of the document.
Syntax
public void writeXMLDeclaration(String version, boolean includeEncoding, boolean standalone);
Remarks
This method should be call first to write a new XML declaration at the top of the document. Version specifies the XML version to use ('1.0').
If IncludeEncoding is true, an encoding attribute will be included based on the current Charset. If Standalone is true, the standalone="true" attribute will be included on the declaration.