Anyone that knows PHP and XML out there? Then please have a look!
This is my PHP code:
$xml = simplexml_load_file(\"movies.xml
You need to iterate through the categorie elements too, in the same way you've iterated through movies.
echo '';
foreach($movie->regions->region->categories->categorie as $categorie){
echo $categorie . ', ';
}
echo '
';
You'll probably want to trim the trailing , as well.
The method mentioned in my comment:
$categories = $movie->regions->region->categories->categorie;
while($category = current($categories)){
echo $category . next($categories) ? ', ' : '';
}