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 to replace before upgrading

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)

MySQL

What it does

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. Then a final XML file is created that contains a link to the XML Stylesheet file. The lower part of the workflow contains a helper Webhook that reads an XSL Template from the GitHub gist and serves it back via the Respond to Webhook node. This is required to comply with the CORS rules of modern browsers. These rules dictate that both XML data and a stylesheet file should come from the same domain.

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.