Skip to content

HasChildNodes - BaseXmlDomNode

Indicates whether a node has child nodes

Type: Property
Access: Read-Only
Data Type: Boolean
Parameters: None

Syntax

Property Boolean HasChildNodes
Access Type Syntax
Read Access: Get HasChildNodes to BooleanVariable

Description

HasChildNodes indicates whether a node has child nodes. This is a quick way to find out whether a node has children. It always returns False for nodes that, by definition, cannot have children: cXmlDomTextNode, cXmlDomComment, cXmlDomCDataSection, cXmlDomProcessingInstruction, cXmlDomNotation

Col 1 Col 2
Note: - Use a boolean data type for the return value. If you use an integer, you will see the return value is -1 instead of 1, but both are not zero (false), so true.- DataFlex returns the value as returned by Microsoft XML.