om.DomNode.selectByTagName

Finds descendant DOM nodes based on a tag name.

Syntax

selectByTagName(
   tagName STRING )
  RETURNS 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")

For a complete example, see Example 1: Search nodes by tag name.