Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

XML

core.xml · version 1 · Transform

Convert between JSON and XML.

Ports

PortKindLabelRequiredMax connections
input 0main
output 0main

Credentials

This node uses no credentials.

Parameters

NameTypeDefaultRequiredShown whenDescription
modeoptions"jsonToxml"One of jsonToxml, xmlToJson.
dataPropertyNamestring"data"Property.
optionscollection{}
options.attrkeystring"$"Attribute key.
options.charkeystring"_"Text key.
options.explicitArraybooleanfalseAlways use arrays for children.
options.explicitRootbooleantrueKeep root element.
options.ignoreAttrsbooleanfalseIgnore attributes.
options.mergeAttrsbooleantrueMerge attributes into the element.
options.normalizebooleanfalseCollapse whitespace.
options.normalizeTagsbooleanfalseLowercase tag names.
options.trimbooleanfalseTrim text.
options.rootNamestring"root"Root element name.
options.headlessbooleanfalseOmit XML declaration.
options.cdatabooleanfalseWrap special text in CDATA.

Import

Exported workflows that use these node types import to this node. Unverified ranges import with a parameter warning until parity fixtures confirm them; see Migrating.

Source typeVersion rangeStatusFixtures
n8n-nodes-base.xml1unverified