om.DomNode.getFirstChild

Returns the first child DOM node.

Syntax

getFirstChild()
  RETURNING result om.DomNode

Usage

The getFirstChild() method returns the first child DOM node in the current node.

This method is typically used to scan children nodes with the getNext() method, until getNext() returns NULL.

DEFINE parent, child om.DomNode
...
LET child = parent.getFirstChild()
WHILE child IS NOT NULL
    ...
    LET child = child.getNext()
END WHILE