Documentation
exists
usage
boolean xml->exists( string xpath )
parameters
xpath : path to the node you want to check the existence of
returns
Returns a boolean representing wether the node exists or not.
examples
$result = query($NQL);
$xml = new XML($result);
if( $xml->exists("/RESPONSE/RESULTS/CONTACT") ){
echo 'This contact already exists';
}