how to get a xml rsp stat value in php?
===

<?xml version="1.0" encoding="utf-8"?>
<rsp stat="ok">
<cell> lat="50.5715642160311" mcc="250" lon="25.2897075399231" cellId="29513" nbSamples="57" mnc="99" lac="0" range="6000"</cell>
</rsp>



Above code get the <rsp stat="ok"> or <rsp stat="fail"> rsp stat value ok or rsp stat value fail? and also get a cell lat or err info "cell not found" and code value 1.