Documentation
getElement
usage
XMLNode = Sushee_shell->getElement( string xpath )
returns
a XML Node object.
If no matching node is found, the methods return FALSE.
examples
include_once('../sushee/common.php');
$shell = new Sushee_shell();
$shell->addCommand(
'<GET>
<CONTACT ID="1857"/>
</GET>'
);
$shell->execute();
$contact = $shell->getElement('/RESPONSE/RESULTS/CONTACT');
$firstname = $contact->valueOf('INFO/FIRSTNAME');
$lastname = $contact->valueOf('INFO/LASTNAME');
echo $firstname.' '.$lastname; // prints "Boris Verdeyen"