In the following XML I am trying to monitor both member values: <response status="success"><result> <member>880</member> <member>2793</member> </result></response>

If I use member or member or result/member I can always get the first value but never the second. If I set the sensor to monitor the number of occurrences it registers two, but when I switch it back to use the value it one sees the value of the first member.


Article Comments

Hi,

You can use a regular expression for the node value.

In your case

//member[2]

will do the trick.


Sep, 2014 - Permalink