I have some xml:
<?xml version="1.0" encoding="utf-8" ?>
<?pageview_candidate?>
<SearchResponse xmlns="http://schemas.microsoft.com/testpad" Version="2.2">
<mms:Image xmlns:mms="http://schemas.microsoft.com/testpad">
<mms:Total>2350000</mms:Total>
How can I extract the mms:Total value of 2270000 from this using PHP? I have given the xml the $xml variable.
There’s a useful blog article here explaining how to access namespaced elements and attributes using simpleXML, that should provide you with a good starting point.