Documentation
nodeName
usage
$nodename = $NQL->nodeName( string xpath )
paramètres
xpath : path of the node of which you want to know the name.
exemples
include_once('../Kernel/common/nql.class.php');
$nql = new NQL();
$nql->addCommand(
'<GET name="visitor">
<CONTACT ID="1857"/>
</GET>'
);
$nql->execute();
echo $nql->nodeName("/RESPONSE/RESULTS[@name='visitor']/*[1]"); // prints "CONTACT"
$contact = $nql->getElement('/RESPONSE/RESULTS/CONTACT');
echo $contact->nodeName(); // prints "CONTACT"