I have this XML file and i need to extract the values of USER_NAME and USER_ID and IP from it. I loaded the XML into SimpleXML using:
$xmlObj=new SimpleXMLElement($xmlstring);
But I don't now what to do after that..
<?xml version="1.0" encoding="UTF-8"?>
<content>
<response>
<state>
<code>1</code>
</state>
<userinformationlist>
<userinformation>
<attribute key="USER_NAME">Charles</attribute>
<attribute key="USER_ID">88477299101</attribute>
<attribute key="IP">127.0.0.1</attribute>
<attribute key="CCR_UUID" />
</userinformation>
</userinformationlist>
</response>
</content>