DOMImplementation->createDocument Creates a DOM Document object of the specified type with its document element Description objectDOMImplementation->createDocument stringnamespaceURI stringqualifiedName objectdoctype 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 DOMExcpetion if there is an error with the namespace, as determined by namespaceURI and qualifiedName, or if doctype is not valid. See also DOMImplementation->createDocumentType().