XML
On this page
The XML sensor calls an endpoint, reads one value from the XML response with an XPath expression, and compares it to the value you expect. Use it for SOAP services, XML feeds and legacy integrations.
In the wizard: API → XML response content.
Settings#
The request settings are those of the HTTP sensor (except HEAD), plus a Response validation section:
| Setting | Description |
|---|---|
| XPath | Where to read the value, for example /stock/warehouse[@id='PAR']/status. |
| Condition, Value type, Value to check, Case sensitive | As for the JSON sensor. |
When is it healthy?#
When the request succeeds with an accepted code, the XPath finds a value, and the condition holds. A numeric value is recorded and charted.
Example#
Warehouse API — Stock feed: POST a SOAP envelope to the warehouse partner's endpoint, read //Status and require it to be Equal to OK.