Previous Next

NUM-CHILDREN attribute
Returns the number of child nodes below the node referred to by a node reference. Attributes are not counted since they are not considered children of a node.
Data type:
Access:
Applies to:
The following example demonstrates getting all the child nodes from the XML node referenced by hNoderef using the NUM-CHILDREN attribute:
 
REPEAT jx = 1 TO hNoderef:NUM-CHILDREN:
  hNoderef:GET-CHILD(hNoderefChild, jx).
  . . .
END.

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.