Progress
Language 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 © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095