Hi Guys,

I am trying to get the values in an xml file which is structured like:

PHP Code:
<?xml version="1.0"?><root><bonus><bonus bonus_id="5" qty="4" title="titleName" variant="6"/><bonus bonus_id="6" qty="2" title="titleName2"/></bonus><category name="Acne Care"><product bestseller_flag="0" brand="clearasil" brand_flag="0" container="tablet" generic="yes" name="titleName3"><description>I NEED THIS DATA TO!</description>
i load the xml file fine using: $response = simplexml_load_file("data.xml"); but how i retrieve the data is the part i'm having trouble with normally the xml's i am used to are like:

<root>
<value1>first value</value1>
<value2>another value</value2>
</root>

easier ones lol

thanks for any helop guys

Graham