ok here's a the xml file.....
now i've figured out how to grab some various bits & bobs
$xml->track[0]->artist //returns ben huijbregts
$xml->track[0]->name //returns may 2005 mix
$xml->track[0]->date['uts'] // returns 1173991947
now that's all good but i want the very first "field", "recenttracks user" which would return "marc2003". how do i do it?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<recenttracks user="marc2003">
<track>
<artist mbid="">Ben Huijbregts</artist>
<name>May 2005 Mix</name>
<mbid></mbid>
<url>http://www.last.fm/music/Ben+Huijbregts/_/May+2005+Mix</url>
<date uts="1173991947">15 Mar 2007, 20:52</date>
</track>
</recenttracks>
now i've figured out how to grab some various bits & bobs
$xml->track[0]->artist //returns ben huijbregts
$xml->track[0]->name //returns may 2005 mix
$xml->track[0]->date['uts'] // returns 1173991947
now that's all good but i want the very first "field", "recenttracks user" which would return "marc2003". how do i do it?
