I have php file that extracts the following XML from a web service:
<deviceList>
    <device 
        name="Low volt light" 
        id="10" 
        type="Z-Wave Switch Multilevel" 
        value="0"
        address="00016922-018" 
        code="" 
        canDim="True" 
        lastChange="26-07-2014 17:31:33" 
        firstLocation="Kitchen" 
        secondLocation="Main" 
    />
    <device 
        name="Light" 
        id="11" 
        type="Z-Wave Switch Multilevel" 
        value="0" 
        address="00016922-019" 
        code="" 
        canDim="True" 
        lastChange="28-07-2014 18:27:56" 
        firstLocation="Bedroom" 
        secondLocation="Main" 
    /> 
</deviceList>
To be it seems formatted correctly, but I can not get it loaded into an array or object. I have been through W3School and simliar sources, but even with the examples there, I still cant get i to work. Could someone help me here, and maybe also show how the code should be for searching through the array for "id=10" and then display the corresponding "value" (in this example =0)
 
     
    