n8n XML nodeConfigure XML in n8n.
The n8n XML node turns a string of markup into structured data, and structured data back into markup. One head parameter drives it, Mode, with 2 directions of conversion. Point it at the property holding the payload and the rest of the workflow gets a shape it can read.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n XML node actually do?
The XML node converts data from and to XML, and that is the whole job. You pick a direction, you name the property that holds the payload, and n8n hands the next node either a JSON object or a string of markup. It runs on every incoming item and never starts a workflow on its own, so a trigger such as a Schedule Trigger or a Webhook always sits in front of it.
The first pattern is an inbound feed. A supplier endpoint answers in XML, you call it with HTTP Request, and the body lands in a property as one long string. The XML node in xmlToJson mode parses it into an object, and from there Edit Fields (Set) can lift the fields you actually care about into clean keys.
The second pattern runs the other way. A partner system accepts orders as XML only, so you build the object in the workflow, switch Mode to jsonToxml, and send the result as the request body. The Root Name option decides the wrapping element, and Headless drops the XML header when the receiver refuses it.
The third pattern is routing. Once the markup is parsed, the values are ordinary JSON fields, so If can branch on a status and Merge can bring the parsed items back together with data from another branch. Nothing downstream needs to know the payload arrived as markup.
Two habits save time. If the XML sits inside a binary file, the Extract from File node converts it to text first, because this node reads a text property and not a file. And the options list changes with the direction: Attribute Key and Character Key show up in both modes, while Explicit Array, Normalize Tags or Trim only appear once XML to JSON is selected.
Limits are worth knowing before you build. Any option you do not add with Add option keeps its default value, so parsing behavior can differ between two nodes that look identical in the canvas. The node is at version 1, and an older workflow may show fewer options than a fresh one. For a wider view of where n8n fits, the n8n review covers the platform itself.
Which parameters does the XML node expose?
The XML node has one parameter. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Mode
modeWhat you see in n8n
Notes & use cases
Mode sets from and to what format the data should be converted, and every other choice on the node follows from it. You set it once per node, so a workflow that parses an answer and builds a reply uses 2 XML nodes rather than one.
Key parameters
- Mode:
xmlToJsonconverts data from XML to JSON,jsonToxmlconverts data from JSON to XML. - Property Name: required, the name of the property holding the data to convert, often
{{ $json.data }}from the node before. - Options: opened with Add option, each one added shows as an extra field in the panel.
Need help automating XML with n8n?
A person reads every message.
XML node questions, answered
01Is the n8n XML node free to use?
02What do you need to configure before using it?
03What are the limits of the XML node?
04Should you use the XML node or Extract from File?
05n8n or Make for XML conversion?
Get our weekly integration tips.
No spam. Unsubscribe anytime.



