PHP使用SimpleXML解析XML将无法正常工作

Me and my friend are trying to make a webpage which has a flash game on it. There's only going to be one page for all the games so we're using XML to load data about the game. Before I got started I did some simple test but they're not working. I'm trying to print the title of the first game. This is the XML file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<games>
    <game id="0">
        <name>3d Worm</name>
        <source>games/3dworm.swf</source>
    </game>

    <game id="1">
        <name>Portal</name>
        <source>random_source</source>
    </game>
</games>

This is the PHP file:

<?php
require("details.php");
$xml = simplexml_load_file("games.xml");
$games = $xml->games;
$game = $games->game[0];
echo $game->name;
?>

When I open the page it's just blank and I don't know why.

$games = simplexml_load_file("games.xml");
foreach($games->game as $game) {
  print $game->name . "
";
}