I just want to display the following XML records in a PHP foreach loop, \[code\]<?xml version="1.0" encoding="utf-8"?><Node> <game_takes> <game_take> <id type="System.String">0</id> <name type="System.String">take1</name> </game_take> <game_take> <id type="System.String">1</id> <name type="System.String">take2</name> </game_take> <game_take> <id type="System.String">2</id> <name type="System.String">take3</name> </game_take> <game_take> <id type="System.String">3</id> <name type="System.String">take4</name> </game_take> </game_takes></Node>\[/code\]what i've been trying is \[code\]$grabme = simplexml_load_file('gamecast.xml'); foreach ($grabme->game_take as $key) { echo $key['name']; }\[/code\]nothing is seems like working, can anyone give me a hand?