Hello n8n experts,

I’m trying to generate an XML form a JSON. I’m struggling to add the attributes of the header tag. I’m using the XML node with the option “Attribute Key” with a $.

When I add a the attribute as a field starting with $ I get the error: “Invalid character in name”.

What would be the right way of doing it?

Below you can see a workflow that shows the issue:

Information on our n8n setup

  • n8n version: 1.21.0
  • Database (default: SQLite): postgresql 14.8
  • n8n EXECUTIONS_PROCESS setting (default: own, main): queue
  • Running n8n via (Docker, npm, n8n cloud, desktop app): kubernetes
  • Operating system: amazon linuex