Documentation
getElements
usage
XMLNodes Array = Sushee_Shell->getElements( string xpath )
returns
An array containing XML Nodes.
examples
include_once('../sushee/common.php');
$shell = new Sushee_Shell();
$shell->addCommand(
'<SEARCH>
<CONTACT/>
</SEARCH>'
);
$shell->execute();
$contactNodes = $shell->getElements('/RESPONSE/RESULTS/CONTACT');
foreach($contactNodes as $contact){
$firstname = $contact->valueOf('INFO/FIRSTNAME');
$lastname = $contact->valueOf('INFO/LASTNAME');
echo $firstname.' '.$lastname;
}