Using XML Value Sensor for multiple values
Modified on 2025-06-10 13:35:13 +0200
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Important: We no longer maintain this article. The information might be out of date.
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
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
Hi,
You can use a regular expression for the node value.
In your case
will do the trick.
Sep, 2014 - Permalink