Documentation
exists
usage
bool = Sushee_shell->exists( string xpath );
paramètres
xpath : a path to the element(s) you want check whether they are present or not
retourne
boolean
exemples
include_once('../sushee/common.php');
$shell = new Sushee_shell();
$shell->addCommand(
'<SEARCH name="news">
<MEDIA mediatype="News"/>
</SEARCH>'
);
$shell->execute();
if ( $shell->exists("/RESPONSE/RESULTS[@name='news']/MEDIA") ){
echo "There are some news";
}