Lasso Soft Inc. > Home

[ xml_attr->name ]


Returns the name of the given xml_attr object.

  • Syntax
  • Beginner

Return the name of an XML attribute

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. 


var( rhino = xml('<rhino class="coder">Jono</rhino>') )

var ( rhinoAtt = $rhino->attributes->item(0) )

'The Attribute is: '+$rhinoAtt->name


The Attribute is: class

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