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 is the prefix of the XMLAttribute.
  2. name is the name of the XML Attribute.
  3. ns is the namespace URI of the XML Attribute.
  4. val is the value of the XML Attribute.

Usage

Sets (or resets) 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 with the appropriate error number.