Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : NUM-CHILDREN attribute
 

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: INTEGER
Access: Read-only
Applies to: X-document object handle, X-noderef object handle
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.