DOMImplementation->createDocument

(no version information, might be only in CVS)

DOMImplementation->createDocument --  Creates a DOM Document object of the specified type with its document element

Description

object DOMImplementation->createDocument ( [string namespaceURI [, string qualifiedName [, object doctype]]])

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().