Hi. I try to get values of array from this XML using PRTG's HTTP XML/REST Value Sensor:
<entry channel="1" enabled="1" present="1"> <item t="text" r="1" d="Channel type">FXO</item> <item t="text" r="1" d="Line status">Ready</item> <item t="text" r="1" d="CO Line">Connected</item> <item t="text" r="1" d="Reg. status">Registered</item> <item t="int" r="0" d="SIP port">5061</item> <item t="text" r="0" d="Call type"/> <item t="text" r="1" d="Status">Idle</item> <item t="int" r="0" d="Call limit">0</item> <item t="int" r="0" d="Total duration">0</item> <item t="text" r="0" d="Memo"/> </entry>
with the following XML Node field:
entry[@channel='1']/item[@d] and I want to get all 'item' ellement in different channels, e.g.: Channel type = FXO Line status = Line status....
but now I get in this form:
Value = 0 Message = Node entry[@channel='1']/item[@d] holds value FXO. Channels: Downtime Execution Time Value
Add comment