Display Plant Info - Mostly Shady Plants"; // find all plants with mostly shady light $plant = $xml->xpath ("//PLANT [LIGHT='Mostly Shady']"); $numPlants = count($plant); for ($i=0; $i<$numPlants; $i++) { echo "
";
foreach ($plant[$i]->children() as $child) {
echo $child->getName() . ": " . $child . "
";
}
echo "