Skip to content

CreateChildNode - cXMLDOMDocumentType

Creates a node in the document and assign its interface to the new DataFlex object

Type: Function
Return Data Type: Handle

Parameters

Parameter Type Description
iNodeType Integer Valid node types are:ConstantMeaning
sTagName String Tag Name for new node
sNameSpace String Namespace name of new node

Syntax

Function CreateChildNode Integer iNodeType String sTagName String sNameSpace Returns Handle

Call Example

Get CreateChildNode iNodeType sTagName sNameSpace to HandleVariable

Description

CreateChildNode creates a node in the document and assign its interface to the new DataFlex object.

You can use the message CreateChildNode to create namespace nodes where you pass the tag and namespace as a separate parameter. See AddElement for more information on namespaces.

Return Value

If successful, the function returns an object handle for the newly created node. If zero is returned, the operation failed.