New XmlDoc Constructor

Constructor for creating a new XML document tree object.

xmldoc_object = New XmlDoc(document_name)

Prerequisites

None

Parameters

document_name

A required String expression that specifies the name of the top-level section in the new document. The name must not contain any special characters.

Remarks

This method creates a new XML DOM document tree including its top-level document node. It also creates a single element node with the name document_name as a child of the document node.

The New constructor only needs to be called if you are creating a new document from within GPL. You do not need to invoke it before calling XmlDoc.LoadFile or XmlDoc.LoadString, which automatically create a new document tree object.

Examples

Dim doc As XmlDoc
doc = New XmlDoc("my_doc")

See Also

XML Classes | XmlDoc.LoadFile | XmlDoc.LoadString