The [xml_node->attributes] method returns an ordered list of the attributes of the given node.
The object returned by this method is a 0 indexed list of xml_attr objects which has type xml_namedNodeMap_attr.
This example uses the [xml_node->attributes] method to produce a list of the attributes of the 'vacation' node.
var(vacationDays = xml('<vacation day="23" month="March"> <employee>Sean</employee> </vacation>') ) $vacationDays->attributes
xml_namedNodeMap_attr( day="23", month="March")
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.