public createDocument(namespaceURI as String, qualifiedName as String, doctype as DocumentType) as Document throws DOMException
Creates a document with an optional document type and root element.
New document.
document = implementation.createDocument(null, "root", null)