I'm trying to extract the value of Queued in the xml below using the HTTP XML/REST Value sensor:
<xxxxresponse> <action>GETSTATISTICS</action> <response>Success</response> <responsedata xmlns:xxxx="http://schemas.xxxxxxxxxx.com/aci/"> <xxxx:stat class="Indexer" xxxxid="Queue" name="Received" metric="6" value="1665522"/> <xxxx:stat class="Indexer" xxxxid="Queue" name="Completed" metric="6" value="1665520"/> <xxxx:stat class="Indexer" xxxxid="Queue" name="Queued" metric="6" value="2"/> </responsedata> </xxxxresponse>
I've tried many variations of the following:
- xxxx:stat[@name='Queued']
- stat[@name='Queued'] - doesnt seem to work (with 'Remove namespaces')
- /stat[@Queued]
Am I using the correct sensor? If so, what is the correct syntax to pull out the value?
Thanks.
Add comment