org.w3c.dom.DOMImplementation.createDocument
method
public createDocument(namespaceURI as String, qualifiedName as String, doctype as DocumentType) as Document throws DOMException
Description

Creates a document with an optional document type and root element.

Parameters
  • namespaceURI Root namespace URI.
  • qualifiedName Root qualified name.
  • doctype Optional document type.
Returns

New document.

Throws
  • DOMException if the document cannot be created.
Example
document = implementation.createDocument(null, "root", null)