Templates / Sql to XML export with XSL template formatting

Sql to XML export with XSL template formatting

Needs changes

by n8n Team ✓ · 2,216 views · created 2023-09-19 · Document Extraction

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: Item Lists (legacy), Convert to/from binary data. 2 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs when an HTTP GET request hits its webhook URL (plus 1 other trigger). Along the way it connects MySQL. It also calls gist.githubusercontent.com over HTTP.

How it runs

Trigger: When an HTTP GET request hits its webhook URL (plus 1 other trigger).

  1. Show 16 random products (MySQL): run a query
  2. Get XSLT (HTTP Request): calls gist.githubusercontent.com
  3. Define file structure (Edit Fields (Set)): sets or maps fields
  4. Respond to Webhook: sends the response back to the webhook caller
  5. Concatenate Items (Item Lists): reshapes item lists (legacy Item Lists node)
  6. Convert to XML (XML): converts between XML and JSON
  7. Create HTML (HTML): parses or builds HTML
  8. Move Binary Data (Convert to/from binary data): uses Convert to/from binary data
  9. Respond to Webhook: sends the response back to the webhook caller

Services it uses

MySQL

HTTP calls to: gist.githubusercontent.com

Before you upgrade to n8n 3.0

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

  • Item Lists (legacy) in Concatenate Items: replace with Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used).
  • Convert to/from binary data in Move Binary Data: replace with Convert to File or Extract from File.

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

Removed in 3.0Replace with
Item Lists (legacy)
Concatenate Items
Split Out, Aggregate, Sort, Limit, Remove Duplicates or Summarize (match the operation used)
Convert to/from binary data
Move Binary Data
Convert to File or Extract from File

Nodes used (9)

From the author

This workflow demonstrates how to export SQL to XML and present the data nicely formatted using an XSL Template. The upper part of the workflow starts with a webhook. Then it gets several random records from the SQL table and converts them into an 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.