Documentation
copyOf
usage
string xml->copyOf( string xpath )
parameters
xpath : path to the node you want to whole content (with the XML nodes)
returns
Returns a string which is the copy of the node and its childs
examples
$result = query($NQL);
$xml = new XML($result);
$media_xml = $xml->copyOf("/RESPONSE/RESULTS/MEDIA");
$result = query($NQL);
$xml = new XML($result);
$media = $xml->getElement("/RESPONSE/RESULTS/MEDIA");
$css = $media->copyOf("DESCRIPTIONS/DESCRIPTION/BODY/CSS/*");