에서 참조

Creates an XML document object.

Note: The createDocument method is supported in Internet Explorer from version 9, but it creates an HTML document, not an XML document.


object.createDocument (namespaceURI, qualifiedName, docTypeObj);

You can find the related objects in the Supported by objects section below.


namespaceURI Required. String that specifies the namespace URI for the documentElement (root node). qualifiedName Required. String that specifies the name of the documentElement (root node). If an empty string is specified, the new XML document will have no root node. docTypeObj Required. Reference to a doctype object that specifies the document type of the XML document. Use the createDocumentType method to create a doctype object. Set to null if no document type is needed.

Return value:

Returns the newly created XMLDocument object.

Comments are closed.

Post Navigation