I'm trying to figure out a way to import some XML data into HTML/PHP web page. I'm creating website for movies and with the movie data to be extracted from XML file because that way I'd be able to change just the file and it'll be easier for maintenance. Here is the XML file:
<?xml version="1.0" encoding="UTF-8"?>
<movie100001>
<title>Movie Title 1</title>
<year>2016</year>
<director>Zack Dodgers</director>
<director>Robert Zemeckis</director>
<actor>Marlon Brando</actor>
<actor>Brandon Frazer</actor>
<actor>50 Cent</actor>
<actor>Pamela Anderson</actor>
<actor>Bon Scott</actor>
<actor>Jonathan Davies</actor>
<plot>Its a sample plot, noone cares about what does this field say.</plot>
<genre>Action</genre>
<genre>Horror</genre>
<genre>Comedy</genre>
</movie100001>
I wish to have the actors separated by comma, the genres as well. If possible, I'd add links to the genre/s (and/or actors) which would add more depth to the website. For example "genre"