[xml_namedNodeMap_attr->getnameditem] returns the property name/data pair from a XML attribute node as a xml_attr object.
This xml_attr object can then be accessed as name/value pair similar to a map, using obj->name and obj->value.
xml_namedNodeMap_attr->getnameditem(string)
Code
var('textXML') = xml('<Property FormalName="Keywords" Data="United States"/>');
var('whatWeWant') = $textXML->attributes->getnameditem('Data')->value;
$whatWeWant;
Result
United States
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