xml.DomNode.hasAttributeNS

Checks whether a namespace qualified XML Attribute of a given name is carried by an XML Element DomNode object.

Syntax

hasAttributeNS(
   name STRING,
   ns STRING )
  RETURNING flag INTEGER 
  1. name the name of the XMLAttribute to check
  2. ns the namespace URI of the XML Attribute to check.

Usage

Checks whether a namespace qualified XML Attribute of a given name is carried by this XML Element DomNode object, where name the name of the XMLAttribute to check; ns the namespace URI of the XML Attribute to check. Returns TRUE if an XML Attribute with the given name and namespace URI is carried by this XML Element DomNode object, otherwise returns FALSE.

In case of error, the method throws an exception and sets the STATUS variable with the appropriate error number.