Method XmlNode():addAttribute() Foundation
Adds an attribute.
:addAttribute( <cAttr>, <cValue> [, <cNamespace>] ) --> self
:addAttribute() returns the object executing the method.
The method :addAttribute() adds an attribute to the node object. Both the name and the value of the attribute must be specified. If an attribute of the same name exists already, no attribute is created. Instead, only the value of the existing attribute is changed.
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.