Answer the question
In order to leave comments, you need to log in
How to get value from xml?
I have xml:
<response uri="/crm"><result><message>Record(s) updated successfully</message><recorddetail><FL val="Id">171657000023650001</FL><FL val="Created Time">2017-05-23 12:07:10</FL><FL val="Modified Time">2017-05-24 03:41:40</FL><FL val="Created By"><![CDATA[User]]></FL><FL val="Modified By"><![CDATA[User]]></FL></recorddetail></result></response>
$result = simplexml_load_string( $xml );
<FL val="Id">171657000023650001</FL>
print_r( $result->result->recorddetail->FL[0] );
print_r( $result->result->recorddetail->xpath( 'FL="@val"' ) );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question