Help Centre › Functions & Formulas
Create an XML document from data.
Add it to a process
In the process designer, open the Add step tab. Find Create XML document under Data › XML, or type its name in the search box, and drag it onto the canvas.
Fields
| Field | Required | What it does |
|---|---|---|
| Root element tag | Yes | The XML root element name Default: root. |
| Data (JSON dict or list of dicts) | Yes | The data variable or JSON string to process |
| Variable | Yes | Variable name to store the result Default: xml. |
| Row tag | No | The XML element name for each row Default: item. |
What it gives back
{xml}– Generated XML string
See all Data steps.
Errors
| Error | Description |
|---|---|
| Invalid data | The data cannot be converted to XML |
Tips
- Use the row_tag parameter when your data is a list to control the element name for each item
- Nested dictionaries produce nested XML elements