WriteXMLDeclaration Method
Writes an XML declaration at the top of the document.
Object Oriented Interface
public function doWriteXMLDeclaration($version, $includeencoding, $standalone);
Procedural Interface
ipworks_xmlw_do_writexmldeclaration($res, $version, $includeencoding, $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.