CreateDocumentElement - cXMLDOMDocument
Sets up the first element in a document
Type: Function
Return Data Type: Handle
Parameters
| Parameter | Type | Description |
|---|---|---|
| sTagName | String | Tag name of root element |
Syntax
Function CreateDocumentElement String sTagName Returns Handle
Call Example
Get CreateDocumentElement sTagName to HandleVariable
Description
CreateDocumentElementis not namespace aware and only works reliably for attributes with no namespaces and no prefixes. You should use CreateDocumentElementNS in its place.
CreateDocumentElement is used to set up the first element in a document. It should only be used when creating a new XML Document.
Return Value
If successful, the function returns an object handle for the newly created node. If zero is returned, the operation failed.