DOMImplementation->createDocument
Creates a DOM Document object of the specified type with its document element
&reftitle.description;
DOMDocumentDOMImplementation->createDocumentstringnamespaceURIstringqualifiedNameDOMDocumentTypedoctype
Creates a DOMDocument object of the specified type with its document element.
If namespaceURI, qualifiedName,
and doctype are null, the returned DOMDocument is
empty with no document element
Throws DOMException if there is an error with the
namespace, as determined by namespaceURI and
qualifiedName, or if doctype
is not valid.
See also DOMImplementation->createDocumentType().