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