CreateChildNode - cXMLDOMDocumentFragment

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

Type: Function

Return Data Type: Handle

Parameters: Integer iNodeType String sTagName String sNameSpace

ParameterDescription
iNodeTypeValid node types are:

ConstantMeaning
NODE_ELEMENTElement
NODE_ATTRIBUTEAttribute
NODE_TEXT Text
NODE_CDATA_SECTIONCData Section
NODE_ENTITY_REFERENCEEntity Reference
NODE_ENTITYEntity
NODE_PROCESSING_INSTRUCTIONProcessing Instruction
NODE_COMMENTComment
NODE_DOCUMENTDocument
NODE_DOCUMENT_TYPEDocument Type (DTD)
NODE_DOCUMENT_FRAGMENTDocument Fragment
NODE_NOTATIONNotation

sTagNameTag Name for new node
sNameSpaceNamespace name of new node


Return Value

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


Syntax
Function CreateChildNode Integer iNodeType String sTagName String sNameSpace Returns Handle

Call: 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.