Method XmlNode():getAttribute() Foundation

Returns the value of a certain attribute.

Syntax
:getAttribute( <cAttr> [,<cNS>] ) --> cValue | NIL
Parameters
<cAttr>
A character string with the name of the attribute whose value is to be returned.
<cNS>
A character string with the namespace the attribute belongs to. The <cNS> parameter is optional. If the attribute does not belong to a namespace, the parameter must be omitted.
Return

A character string with the value of the attribute. If the attribute cannot be found, :getAttribute() returns NIL.

Description

The method :getAttribute() returns the value of the attribute whose name is specified in the <cAttr> parameter. If the attribute in <cAttr> belongs to a namespace, the namespace must be specified in the <cNS> parameter. Otherwise, the attribute cannot be found and the method returns NIL.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.