25.84. DOMImplementation.createDocument( ): create a new Document and the specified root elementDOM Level 2 Core:25.84.1. SynopsisDocument createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) tHRows DOMException; 25.84.1.1. Arguments
25.84.1.2. ReturnsA Document object with its documentElement property set to a root Element node of the specified type. 25.84.1.3. ThrowsThis method may throw a DOMException with the following code values in the following circumstances:
25.84.2. DescriptionThis method creates a new XML Document object and the specified root documentElement object for that document. If the doctype argument is non-null, the ownerDocument property of this DocumentType object is set to the newly created document. This method is used to create XML documents and may not be supported by HTML-only implementations. 25.84.3. See AlsoDOMImplementation.createDocumentType( ) |