Documentation
copyOf
usage
string xml->copyOf( string xpath )
paramètres
xpath : path to the node you want to whole content (with the XML nodes)
retourne
Returns a string which is the copy of the node and its childs
exemples
$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/*");