SQL to XML export with XSL template formatting

Nodes

9dd572aa-e531-4ffe-a66c-58ac7003ac5dc26ee7ea-e01b-42ad-8f48-355916f8914cfc075733-bb58-455a-b659-2f0182342273a97f27bd-6185-4b9b-bade-f7020a7a18852cf69bf8-d025-41db-983e-898d5f3acf5a+2

Created by

n8n8n Team

Last edited 38 days ago

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.

New to n8n?

Need help building new n8n workflows? Process automation for you or your company will save you time and money, and it's completely free!