xml.DomNode.setIdAttributeNS

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

Syntax

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

Usage

Declare (or undeclare) the namespace-qualified XML Attribute of given name and namespace 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. 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).