Documentation
getElements
usage
XMLNodes Array = Sushee_Shell->getElements( string xpath )
retourne
An array containing XML Nodes.
exemples
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;
}