Templates / Xml to SQL database import

Xml to SQL database import

Needs changes

by n8n Team ✓ · 2,906 views · created 2023-09-19 · Engineering

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: Read Binary Files, Item Lists (legacy). 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 7 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. Read Binary Files: uses Read Binary Files
  2. Extract binary data (Code): runs custom JavaScript code
  3. XML: converts between XML and JSON
  4. Item Lists: reshapes item lists (legacy Item Lists node)
  5. Add new records (MySQL): uses MySQL
  6. Create new table (MySQL): run a query

Services it uses

MySQL

Before you upgrade to n8n 3.0

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

  • Read Binary Files: replace with Read/Write Files from Disk.
  • Item Lists (legacy) in Item Lists: replace with Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used).

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace with
Read Binary Files
Read Binary Files
Read/Write Files from Disk
Item Lists (legacy)
Item Lists
Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used)

Nodes used (6)

From the author

This is an example workflow that imports an XML file into an SQL database. - The ReadBinaryFiles node loads the XML file from the server. - Then the Code node extracts the file content from the binary buffer. - Afterwards, an XML node converts the XML string…

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.