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 this workflow does

This workflow has 11 nodes and runs manually, when you click “Execute workflow”. Along the way it connects MySQL.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Show 16 random products (MySQL): run a query
  2. Define file structure (Edit Fields (Set)): sets or maps fields
  3. Define file structure (Edit Fields (Set)): sets or maps fields
  4. Concatenate Items (Item Lists): reshapes item lists (legacy Item Lists node)
  5. Concatenate Items (Item Lists): reshapes item lists (legacy Item Lists node)
  6. Convert to XML (XML): converts between XML and JSON
  7. Convert to XML (XML): converts between XML and JSON
  8. Move Binary Data (Convert to/from binary data): uses Convert to/from binary data
  9. Move Binary Data (Convert to/from binary data): uses Convert to/from binary data
  10. Write Binary File: uses Write Binary File

Services it uses

MySQL

Before you upgrade to n8n 3.0

3 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • Item Lists (legacy) in Concatenate Items, Concatenate Items1: replace with Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used).
  • Convert to/from binary data in Move Binary Data, Move Binary Data1: replace with Convert to File or Extract from File.
  • Write Binary File: replace with Read/Write Files from Disk.
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)

From the author

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…

Excerpt from n8n Team's description on n8n.io.

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.