Create 2 XML files: with and without XML attributes
Needs changesNeeds changes. This template uses 3 thing(s) that n8n 3.0 removes: Item Lists (legacy), Convert to/from binary data, Write Binary File. 3 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| Item Lists (legacy) Concatenate Items, Concatenate Items1 | Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used) |
| Convert to/from binary data Move Binary Data, Move Binary Data1 | Convert to File or Extract from File |
| Write Binary File Write Binary File | Read/Write Files from Disk |
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - MySQL
n8n-nodes-base.mySql - Edit Fields (Set)
n8n-nodes-base.set - Item Lists
n8n-nodes-base.itemLists - XML
n8n-nodes-base.xml - Convert to/from binary data
n8n-nodes-base.moveBinaryData - Write Binary File
n8n-nodes-base.writeBinaryFile
What it does
This workflow demonstrates two ways of exporting data from SQL to XML. First, several random records are received from the MySQL database. Then, in the upper part of the workflow, the structure of an XML is defined in the Set node. After that, the ItemLists node combines all items into an array. This allows an XML node to create a simple XML file. The lower part of the workflow shows how to create an XML with attributes. It is almost identical except that a $ (dollar sign) JSON key is used to define XML attributes. Finally, both files are saved locally.