Lasso Soft Inc. > Home

[ xml_node->attributes ]

Method

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

 

  • Syntax
xml_node->attributes
Examples
  • Beginner

Get a list of the attributes of an xml_node

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")

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft