xml.DomNode.setIdAttributeNS

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

Syntax

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

Usage

This method sets 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 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).