How can I obtain a nested value from the XML result of a "HTTP XML/REST Value Sensor", an example of the XML result I receive is:
<response status="success"> <result> <IPSec> <entry> <pkt-decap>591815314</pkt-decap> <state>active</state> <anti-replay>True</anti-replay> </entry> </IPSec> </result> </response>
What should I enter in the "XML Node (and optional property)" field in the sensor's settings if I want to obtain the value of 'state'?
I have tried the following but all result in the error message "Node not found in xml result"
result/IPSec/entry/state entry/state
Thanks,
James.
Add comment