AutomationFlowsGeneral › Handle Webhook with XML Response

Handle Webhook with XML Response

Original n8n title: Webhook Returning XML

Webhook Returning Xml. Uses xml, respondToWebhook. Webhook trigger; 4 nodes.

Webhook trigger★★☆☆☆ complexity4 nodesXML
General Trigger: Webhook Nodes: 4 Complexity: ★★☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "nodes": [
    {
      "id": "302c87d4-2c92-40a0-9a77-cef4ddd7db6d",
      "name": "XML",
      "type": "n8n-nodes-base.xml",
      "position": [
        840,
        440
      ],
      "parameters": {
        "mode": "jsonToxml",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "88ba5ee7-4788-452f-9d64-bf192fe90e5f",
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "position": [
        660,
        440
      ],
      "parameters": {
        "values": {
          "number": [
            {
              "name": "number",
              "value": 1
            }
          ],
          "string": [
            {
              "name": "string",
              "value": "my text"
            }
          ]
        },
        "options": {},
        "keepOnlySet": true
      },
      "typeVersion": 1
    },
    {
      "id": "6cda9dc3-0fdd-4f3a-aecf-0ff0efd28c33",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1020,
        440
      ],
      "parameters": {
        "options": {
          "responseHeaders": {
            "entries": [
              {
                "name": "content-type",
                "value": "application/xml"
              }
            ]
          }
        },
        "respondWith": "text",
        "responseBody": "={{ $json.data }}"
      },
      "typeVersion": 1
    },
    {
      "id": "94644433-fb9b-4532-81d2-d9673eb6e15e",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        480,
        440
      ],
      "parameters": {
        "path": "test",
        "options": {},
        "responseMode": "responseNode"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Set": {
      "main": [
        [
          {
            "node": "XML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "XML": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

Webhook Returning Xml. Uses xml, respondToWebhook. Webhook trigger; 4 nodes.

Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →

More General workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

General

HR tool. Uses googleSheets. Webhook trigger; 12 nodes.

Google Sheets
General

This workflow receives inbound emails from EmailConnect.eu via an n8n webhook, extracts key message fields, drops spam, and routes emails to different downstream paths based on the recipient alias (fo

General

Http Stickynote. Uses stickyNote, httpRequest, highLevel. Webhook trigger; 10 nodes.

HTTP Request, High Level
General

Http Keap. Uses stickyNote, httpRequest, keap. Webhook trigger; 10 nodes.

HTTP Request, Keap
General

Http Stickynote. Uses stickyNote, httpRequest. Webhook trigger; 10 nodes.

HTTP Request