category as $category) { if ($cat == $category->catid){ $catid = $category->catid; $catnumber = $category->catnum; $catname = $category->catname; foreach ($category->location as $loc) { if ($building == $loc->varid){ $locnumber = $loc->number; }} } } //print $catname; $location['.$number'] = $sxe->xpath('/tour/category ['.$catnumber.']/location'); //the above states that in the current category each location can be described as location[0], location[1], location[2], etc. ?>
alt; } ?>
varid){
print 'What happens here –' . htmlentities($loc->whathappens->text) . '
'; } } ?>