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 )
  RETURNS INTEGER 
  1. name defines the name of the XMLAttribute to check
  2. ns defines the namespace URI of the XML Attribute to check.

Usage

Use this method to check whether a namespace qualified XML Attribute of a given name is carried by this XML Element DomNode object, where name is 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. 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).