plant_catalog XML File"; // access each plant foreach ($xml->children() as $plant) { echo "

"; // access each element of the plant foreach ($plant->children() as $child) { // print label: data echo $child->getName() . ": " . $child . "
"; } echo "

"; } ?>