XML
core.xml · version 1 · Transform
Convert between JSON and XML.
Ports
| Port | Kind | Label | Required | Max connections |
|---|---|---|---|---|
| input 0 | main | |||
| output 0 | main |
Credentials
This node uses no credentials.
Parameters
| Name | Type | Default | Required | Shown when | Description |
|---|---|---|---|---|---|
mode | options | "jsonToxml" | One of jsonToxml, xmlToJson. | ||
dataPropertyName | string | "data" | Property. | ||
options | collection | {} | |||
options.attrkey | string | "$" | Attribute key. | ||
options.charkey | string | "_" | Text key. | ||
options.explicitArray | boolean | false | Always use arrays for children. | ||
options.explicitRoot | boolean | true | Keep root element. | ||
options.ignoreAttrs | boolean | false | Ignore attributes. | ||
options.mergeAttrs | boolean | true | Merge attributes into the element. | ||
options.normalize | boolean | false | Collapse whitespace. | ||
options.normalizeTags | boolean | false | Lowercase tag names. | ||
options.trim | boolean | false | Trim text. | ||
options.rootName | string | "root" | Root element name. | ||
options.headless | boolean | false | Omit XML declaration. | ||
options.cdata | boolean | false | Wrap 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 type | Version range | Status | Fixtures |
|---|---|---|---|
n8n-nodes-base.xml | 1 | unverified |