om.DomNode.selectByTagName

Finds descendant DOM nodes according to a tag name.

Syntax

selectByTagName(
   tagname STRING )
  RETURNING result om.NodeList
  1. tagname is a tag name for the search.

Usage

The selectByTagName() method scans the DOM tree for descendant nodes defined with the tag name specified as parameter.

DOM node tag names are case-sensitive.

The method creates a list of nodes as a om.NodeList object. This list object is then used to process the nodes found.

Example

DEFINE node om.DomNode,
       nodelist om.NodeList
...
LET nodelist = node.selectByTagName("Car")