xml.DomNode.setIdAttribute

Declare (or undeclare) the XML Attribute of given name to be of type ID.

Syntax

setIdAttribute(
   name STRING,
   isId INTEGER )
  1. name is the name of the XML Attribute to set.
  2. isId declares whether the attribute is a user-determined ID attribute.

Usage

Declare (or undeclare) the XML Attribute of given name to be of type ID. Use the value TRUE for the parameter isID to declare that attribute for being a user-determined ID attribute, otherwise returns FALSE.

This affects the behavior of getElementById.

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