i have an xml obj like thid:
SimpleXMLElement Object ( [@attributes] => Array ( [id] => survey1_question01 [num] => 01 [text] => 1. What times will I take my 2 pills of Incivek (telaprevir) each day? ) [response] => SimpleXMLElement Object ( [@attributes] => Array ( [dose1] => 08:00 AM [dose2] => 12:02 PM [dose3] => 08:00 PM ) )
how can i navigate to [text] and [response] ?. the problem is $xmlTxt->results->question->@attributes will not work . may be @ symbol is the reason how can i bypass this?