SYNOPSISint xmlWriterStartDocument(xmlWriter writer, string version
[, string encoding [, string standalone]])
Parameters:
writer - the xmlWriterversion - the XML version to use (usually 1.0)encoding (optional) - what character encoding to use
for the document. UTF-8 is used by default.standalone (optional) - pass yes to make this
a standalone XML document. See
http://www.w3.org/TR/REC-xml/#sec-rmd for more information.
The value no may be passed to make the document not standalone
(default).
Returns:
DESCRIPTIONxmlWriterStartDocument() starts the XML document in
writer. This consists of writing out the XML declaration, such
as <?xml version="1.0" encoding="UTF-8"?>
EXAMPLE<$ret = (xmlWriterStartDocument($writer, '1.0', 'UTF-8'))>
SEE ALSOxmlWriterNewToFile,
xmlWriterNewToString,
xmlWriterSetIndent