xmlNewDoc is available since version 1.0.
Prototype:
number xmlNewDoc(string version)
Parameters
version
string giving the version of XML "1.0"
Description:
Creates a new XML document.
Return value:
Returns a new document tree handle or null if failed.