Documentation
getElement
usage
xmlnode = xml->getElement( string xpath )
paramètres
xpath : the path to the node you want to get back
retourne
Returns an object representing the node you asked for.
Allows you to get a XML node and work on this node directly instead of working on the whole XML (and from the root of the document). The XMLNode object supports the same method as the XML object.
exemples
$result = query($NQL);
$xml = new XML($result);
$media = $xml->getElement("/RESPONSE/RESULTS/MEDIA[1]");
$title = $media->valueOf("DESCRIPTIONS/DESCRIPTION/TITLE");