AvailabilityDOM Level 2 Core SynopsisDocument createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) throws DOMException; Arguments
ReturnsA Document object with its documentElement property set to a root Element node of the specified type. ThrowsThis method may throw a DOMException with the following code values in the following circumstances:
DescriptionThis method creates a new 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. Use createHTMLDocument( ) to create a new HTML document. See AlsoDOMImplementation.createDocumentType( ), DOMImplementation.createHTMLDocument( ) |