Help Centre › Functions & Formulas
Query an XML string using XPath.
Add it to a process
In the process designer, open the Add step tab. Find Query XML with XPath under Data › XML, or type its name in the search box, and drag it onto the canvas.
Fields
| Field | Required | What it does |
|---|---|---|
| XML data | Yes | The data variable or XML string to process |
| XPath expression | Yes | The XPath expression |
| Variable | Yes | Variable name to store the result Default: result. |
What it gives back
{result}– XPath query result
See all Data steps.
Errors
| Error | Description |
|---|---|
| Invalid XML | The data is not valid XML |
| XPath error | The XPath expression is invalid |
Tips
- Use .//tag for descendant search across all levels
- Use .//tag[@attr="val"] to filter by attributes