om.DomNode.setAttribute

Sets the value of a DOM node attribute.

Syntax

setAttribute(
   name STRING,
   value STRING )
  1. name is the name of the attribute.
  2. value is the attribute value.

Usage

The setAttribute() method sets the value of an attribute in the current node.

DOM node attribute names are case-sensitive.

DEFINE node om.DomNode
...
CALL node.setAttribute("name", "tiger")