I urgently need to know how to read the following XML file:
<uclassify xmlns="http://api.uclassify.com/1/ResponseSchema" version="1.00">
<status success="true" statusCode="2000"/>
<readCalls>
<classify id="cls1">
<classification>
<class className="negative" p="0.741735"/>
<class className="positive" p="0.258265"/>
</classification>
</classify>
</readCalls>
</uclassify>
I need to know the following:
$status_code = ... (should be 2000)
$negative = ... (the value of p, should be 0.741735)
$positive = ... (the value of p, should be 0.258265)
Best regards
Andre
o/p:
If you want to store them :
o/p: