om.DomNode.getLastChild

Returns the last child DOM node.

Syntax

getLastChild()
  RETURNS om.DomNode

Usage

The getLastChild() method returns the last child DOM node in the current node.

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

Example

FUNCTION display_children(node om.DomNode)
    DEFINE child om.DomNode
    LET child = node.getLastChild()
    WHILE child IS NOT NULL
        DISPLAY child.toString()
        LET child = child.getPrevious()
    END WHILE
END FUNCTION