Progress
Language Reference


GET-CHILD( ) Method

Retrieves a specific child node of the node. The first parameter must be a valid X-NODEREF handle and will refer to the specified child XML node if the method succeeds.

Return Type: LOGICAL

Applies To: X-document Object Handle, X-noderef Object Handle

SYNTAX
GET-CHILD( x-node-handle , index ) 

x-node-handle

A valid X-NODEREF handle to use as the child XML node.

index

An integer representing the relative number in the node-tree (1 based).

The following code fragment demonstrates getting all the child nodes from the XML node referenced by hNoderef using the GET-CHILD( ) method:

. . .
REPEAT j = 1 TO hNoderef:NUM-CHILDREN:
  ok = hNoderef:GET-CHILD(hNoderefChild,j).
  IF NOT ok THEN LEAVE.
   . . .
END. 


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