xml.DomNode.getElementsByTagName

Returns a DomNodeList object containing all XML Element DomNode objects with the same tag name.

Syntax

getElementsByTagName(
   name STRING )
  RETURNING list xml.DomNodeList
  1. name is the name of the XML Element tag to match or "*" to match all tags.

Usage

Returns a DomNodeList object containing all XML Element DomNode objects with the same tag name, or NULL; name is the name of the XML Element tag to match, or "*" to match all tags.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.

The getElementsByTagName and getElementsByTagNameNS methods return a DomNodeList object, unlike the other methods that return a DomNode object. The DomNodeList is restricted to contain objects with the same tag name and/or namespace.