Try OpenEdge Now
skip to main content
Working with XML
Reading and Writing XML with the Document Object Model (DOM) : Reading XML input into ABL : Accessing the child nodes
 

Accessing the child nodes

Before you can work with a child node of an XML document, you must create a node reference object with which to access the node. Then you access the node by using the GET-CHILD( ) method. The following code fragment shows obtaining the third child node of the parent node, hParent:
. . .
DEFINE VARIABLE hChildNode AS HANDLE NO-UNDO.

CREATE X-NODEREF hChildNode.
logvar = hParent:GET-CHILD(hChildNode,3).
. . .
* Using node attributes and values