Release 10.1A: OpenEdge Development:
Progress 4GL Reference

> ## 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: Readable

> 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 j = 1 TO hNoderef:NUM-CHILDREN:
>      hNoderef:GET-CHILD(hNoderefChild,j).
>        . . .
>     END.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095