xml.DomNode.setIdAttribute

Set the XML Attribute of given name to be of type ID. Declare (or undeclare) the ID as user-determined.

Syntax

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

Usage

Use this method to set (or reset) the XML Attribute of given name to be of type ID. Use the value TRUE for the parameter isID, to declare the attribute as a user-determined ID attribute, otherwise use FALSE.

This affects the behavior of getElementById.

In case of error, the method throws an exception and sets the STATUS variable. Depending on the error, a human-readable description of the problem is available in the SQLCA.SQLERRM register. See Error handling in GWS calls (STATUS).