Returns the name of the given xml_attr object.
xml_attr->name
This example uses the [xml_attr->name] method to return the attribute name of an xml_attr object which is retrieved using the [xml_node->attributes] method from an xml_node.
Code
var( rhino = xml('<rhino class="coder">Jono</rhino>') )
var ( rhinoAtt = $rhino->attributes->item(0) )
'The Attribute is: '+$rhinoAtt->name
Result
The Attribute is: class
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