I_Hate_Midgets
New Member
I have XML in PHP, I am trying to get the value of the status node:\[code\]<?xml version="1.0" encoding="utf-8" ?><response> <result> <form name="MREP"> <update> <criteria> <field name="Serial_Number" compOperator="Equals" value="http://stackoverflow.com/questions/12415020/A-000-1012"></field> <reloperator>AND</reloperator> <field name="MREP_Type" compOperator="Equals" value="http://stackoverflow.com/questions/12415020/0"></field> </criteria> <newvalues> <field name="Is_being_Used"> <value><![CDATA[TRUE]]></value> </field> </newvalues> <status>Success</status> </update> </form> </result></response>\[/code\]I tried \[code\]$xml = simplexml_load_string($mrepValide); echo $xml->status;\[/code\](where $mrepValide is a string of XML shown above)But I think it didnt work since status is not the parent node. Any help would be greatly appreciated.