Classes

Method XmlNode():getAttributes() Foundation

Returns the attributes.

Syntax
:getAttributes() --> aAttributes
Return

An array of DataObjects representing the attributes of the XmlNode() object. If there are no attributes defined, return is an empty array ({}). Each object in the array represents a single attribute, and has the member variables outlined in the following table.

Members of the DataObject returned by :getAttributes()
Name Data Type Description
name C Name of the attribute
value C Attribute value
namespace C Namespace the attribute belongs to

Description

The method :getAttributes() retrieves the attributes defined for a node object. Each attribute is represented as a DataObject whose member variables contain information such as the name of the attribute. Also see the methods :getAttributeNames()and :getAttributeValues().

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.