xml.DomNode.setAttributeNS

Sets (or resets) a namespace-qualified XML Attribute for an XML Element DomNode object.

Syntax

setAttributeNS(
   prefix STRING,
   name STRING,
   ns STRING,
   value STRING )
  1. prefix defines the prefix of the XMLAttribute.
  2. name defines the name of the XML Attribute.
  3. ns defines the namespace URI of the XML Attribute.
  4. value defines the value of the XML Attribute.

Usage

Use this method to set (or reset) a namespace-qualified XML Attribute for this XML Element DomNode object, where prefix is the prefix of the XMLAttribute, name is the name of the XML Attribute, ns is the namespace URI of the XML Attribute, and val is the value of the XML Attribute.

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).