Lasso Soft Inc. > Home

[ xml_attr->value ]

Method

Returns the value of an xml_attr object.

  • Syntax
xml_attr->value
Examples
  • Beginner

Get the value of an XML Attribute

This example uses the [xml_attr->VALUE] method to return the attribute value 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 value is: '+$rhinoAtt->value

Result

The value is: coder

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