PreviousNextIndex

GET-CHILD( ) method

Retrieves a specific child node of the current 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
index

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

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


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex