xmlDoc xmlTreeNewDoc(string version)
version- the XML version for the doc (usually
xmlTreeNewDoc() is for creating new XML documents from scratch.
You must provide a version number, which becomes the version in the
<$doc = (xmlTreeNewDoc( '1.0' ))>
Will create a new XML document that will have the following XML
While the XML version is determined at document-creation time, the encoding, which also goes in the XML declaration, is determined by parameters when the document is saved/printed. See
xmlTreeSaveDoc() for more