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.
xml_node->attributes
This example uses the [xml_node->attributes] method to produce a list of the attributes of the 'vacation' node.
Code
var(vacationDays = xml('<vacation day="23" month="March">
<employee>Sean</employee>
</vacation>') )
$vacationDays->attributes
Result
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.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments