Documentation
getChildren
usage
$array = $nql->getChildren()
retourne
an array with all the children nodes of the selected node
exemples
include_once('../Kernel/common/nql.class.php');
$nql = new NQL();
$nql->addCommand(
'<SEARCH name="candidates">
<CONTACT>
<INFO>
<BIRTHDAY operator="GT">1979-01-01</BIRTHDAY>
</INFO>
</CONTACT>
</SEARCH>'
);
$nql->execute();
$resultNode = $nql->getElement('/RESPONSE/RESULTS[@name="candidates"]');
$candidates = $resultNode->getChildren();
foreach( $candidates as $one_candidate ){
$ID = $one_candidate->getAttribute('ID');
echo $ID;
}