FM
FlowMarket
Database & SQL Intermediate ⚡ 15 n8n Nodes

Sql to XML export with XSL template formatting

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...

🔌 Nodes & Integrations Used (6)

My Sql Item Lists Xml Html Move Binary Data HTTP Request

📖 Implementation & Setup Guide

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.

⚡ How to import this workflow into n8n:

  1. Click the Direct Download JSON button above to save Sql to XML export with XSL template formatting.json.
  2. Log in to your n8n Cloud or self-hosted n8n instance.
  3. In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
  4. Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
  5. Click Execute Workflow to test and switch to Active!

Related Database & SQL Workflows

View All in Database & SQL →