Hi guys, I’m loving n8n. Question: I’m using the XML to JSON node to return XML with a webhook to requests via GET. I see the following output from my code:
Below is my current node setup:
{
"nodes": [
{
"parameters": {
"path": "SW1",
"responseMode": "lastNode",
"options": {
"responseContentType": "application/xml",
"responsePropertyName": "data",
"rawBody": false
}
},
"name": "Webhook1",
"type": "n8n-nodes-base.webhook",
"position": [
690,
330
],
"typeVersion": 1
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"number": [],
"string": [
{
"name": "Say",
"value": "This is a test"
}
]
},
"options": {}
},
"name": "Set",
"type": "n8n-nodes-base.set",
"position": [
880,
330
],
"typeVersion": 1
},
{
"parameters": {
"mode": "jsonToxml",
"options": {
"rootName": "Response"
}
},
"name": "XML1",
"type": "n8n-nodes-base.xml",
"position": [
1080,
330
],
"typeVersion": 1
}
],
"connections": {
"Webhook1": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"Set": {
"main": [
[
{
"node": "XML1",
"type": "main",
"index": 0
}
]
]
}
}
}