Method XmlNode():getAttribute() Foundation

Returns the value of a certain attribute.

:getAttribute( <cAttr> [,<cNS>] ) --> cValue | NIL
A character string with the name of the attribute whose value is to be returned.
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.

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


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.


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.