xml.DomNode.hasAttribute

Checks whether an XML Element DomNode object has the XML Attribute specified by a specified name.

Syntax

hasAttribute(
   name STRING )
  RETURNS INTEGER 
  1. name defines the object name to check.

Usage

Checks whether this XML Element DomNode object has the XML Attribute specified by name. Returns TRUE if an XML Attribute with the given name 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).