Help Centre › Functions & Formulas
Set the text/value of an XML element.
Add it to a process
In the process designer, open the Add step tab. Find Set XML element value 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 to target elements | Yes | The XPath expression |
| New text value | Yes | The value to set at the specified path |
| Variable | Yes | Variable name to store the result Default: data. |
What it gives back
{data}– Modified XML string
See all Data steps.
Errors
| Error | Description |
|---|---|
| Invalid XML | The data is not valid XML |
| XPath error | The XPath expression is invalid |
Tips
- Sets the text content of all matching elements
- Use specific XPath expressions to target individual elements