xml php load attributes?

I have been haveing some problems, and i cant find the right code for this, been working on it for hours now driveing me crazy
but heres the xml file
http://www.google.com/ig/api?stock=GOOG

all i need to do, the "simple thing" i need to do is just get a string of a data attribute
doing this in php
just so i can pick volume, and is echos that number back for example

Ben2013-01-17T23:44:40Z

Favorite Answer

Do something like this.

<?php
$xml = simplexml_load_file("test.xml");

foreach($xml->body[0]->attributes() as $a => $b)
{
echo $a,'="',$b,"\"</br>";
}
?>

?2016-10-18T05:26:21Z

look interior the codes for something that looks like this: <meta type="keywords" fee="..."> From the blunders I see which you have no longer closed the Meta tag so once you come across the code that looks like that above then type this next to it: /meta This closes the Meta and can artwork.