Documentation
copyOf
usage
$xml_piece = Sushee_Shell->copyOf( string xpath );
paramètres
xpath : a path to the node you want to extract from the XML response.
retourne
a piece of XML as a character string.
exemples
include_once('../Kernel/common.php');
$shell = new Sushee_Shell();
$shell->addCommand(
'<GET>
<CONTACT ID="1857"/>
</GET>'
);
$shell->execute();
$contact_infos = $shell->copyOf('/RESPONSE/RESULTS/CONTACT/INFO');
echo $contact_infos; // prints "<INFO><ID>1857</ID>...</INFO>"