Convert an XML file to JSON via webhook call
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Slack.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Switch: routes items into 3 branches
- Extract from File: extracts data from a file (xml)
- Change Field (Edit Fields (Set)): sets 1 field: xml
- Already JSON (Edit Fields (Set)): sets or maps fields
- Error Response (Respond to Webhook): sends the response back to the webhook caller
- XML: converts between XML and JSON
- Success Response (Respond to Webhook): sends the response back to the webhook caller
- Send to Error Channel (Slack): uses Slack
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- Extract from File
n8n-nodes-base.extractFromFile - Respond to Webhook
n8n-nodes-base.respondToWebhook - Webhook
n8n-nodes-base.webhook - XML
n8n-nodes-base.xml - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack
From the author
Who this template is for This template is for everyone who needs to work with XML data a lot and wants to convert it to JSON instead. Use case Many products still work with XML files as their main language. Unfortunately, not every software still supports…