om.DomDocument.getDocumentElement

Returns the root node element of the DOM document.

Syntax

getDocumentElement()
  RETURNING result om.DomNode

Usage

The method getDocumentElement() returns the root om.DomNode element node of the DOM document.

To hold the reference to the root node, define a variable with the type om.DomNode type.

DEFINE n om.DomNode
LET n = mydoc.getDocumentElement()