Documentation
copyOf
usage
$xml_piece = Sushee_Shell->copyOf( string xpath );
parameters
xpath : a path to the node you want to extract from the XML response.
returns
a piece of XML as a character string.
examples
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>"