xml.json•2.53 kB
{
"nodeType": "n8n-nodes-base.xml",
"displayName": "XML",
"description": "Convert data from and to XML",
"version": 1,
"properties": [
{
"name": "mode",
"displayName": "Mode",
"type": "options",
"default": "xmlToJson",
"description": "Converts data from JSON to XML",
"options": [
{
"name": "JSON to XML",
"value": "jsonToxml",
"description": "Converts data from JSON to XML"
},
{
"name": "XML to JSON",
"value": "xmlToJson",
"description": "Converts data from XML to JSON"
}
]
},
{
"name": "xmlNotice",
"displayName": "If your XML is inside a binary file, use the 'Extract from File' node to convert it to text first",
"type": "notice",
"default": "",
"displayOptions": {
"show": {
"mode": [
"xmlToJson"
]
}
}
},
{
"name": "dataPropertyName",
"displayName": "Property Name",
"type": "string",
"default": "data",
"description": "Name of the property to which to contains the converted XML data",
"required": true,
"displayOptions": {
"show": {
"mode": [
"jsonToxml"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Whether to allow using characters from the Unicode surrogate blocks",
"placeholder": "Add option",
"options": [
{
"name": "allowSurrogateChars",
"displayName": "Allow Surrogate Chars",
"type": "boolean",
"default": false,
"description": "Whether to allow using characters from the Unicode surrogate blocks"
},
{
"name": "attrkey",
"displayName": "Attribute Key",
"type": "string",
"default": "$",
"description": "Prefix that is used to access the attributes"
}
],
"displayOptions": {
"show": {
"mode": [
"jsonToxml"
]
}
}
}
],
"credentialsConfig": [],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}