$xml = new SimpleXMLElement(file_get_contents("movies.xml")); foreach ($xml->movie as $movie) { print("
" . $movie->genre . "
"); } ?>