Templates / Create 2 XML files: with and without XML attributes

Create 2 XML files: with and without XML attributes

Needs changes

by n8n Team ✓ · 1,672 views · created 2023-09-21 · File Management

Needs 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.0Replace 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)

MySQL

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.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.