Link Search Menu Expand Document

XmlDOMImplementation.CreateDocument Method

Explanation Create a Document node.
Not supported in Mobile, AI
Call format var xmldoc = domimpl.CreateDocument( namespaceURI, qualifiedName, doctype )
Return value XmlDocument object
Arguments String namespaceURI Namespace URI of the Document node to be created
String qualifiedName Tag name of the first Element node
XmlDocumentType doctype Reserved for future expansion. Please specify null.
Exception DOM-5 INVALID_CHARACTER_ERR
DOM-14 NAMESPACE_ERR
DOM-4 WRONG_DOCUMENT_ERR
Example of use
    var domimpl = new XmlDOMImplementation;
    var xmldoc = domimpl.CreateDocument("http://www.w3.org/2000/svg", "svg", null);
    
Related item XmlDocument class
CreateDocumentType method