Data: Create XML document

Create an XML document from data.

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

FieldRequiredWhat it does
Root element tagYesThe XML root element name Default: root.
Data (JSON dict or list of dicts)YesThe data variable or JSON string to process
VariableYesVariable name to store the result Default: xml.
Row tagNoThe XML element name for each row Default: item.

What it gives back

  • {xml} – Generated XML string

See all Data steps.

Errors

ErrorDescription
Invalid dataThe 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

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.