xml.DomNode.hasAttribute

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

Syntax

hasAttribute(
   name STRING )
  RETURNING flag INTEGER 
  1. name is 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 with the appropriate error number.