Pass the XML string as payload to function-npm node. Assign the payload received at function-npm node to a variable. Pass the XML to the parse method with options (options can be changed as per requirement) Assign the return Json Object to msg.payload.
Note: function-npm is a function node for Node-RED with npm load capabilities.
Thanks to the team behind fast-xml-parser: https://github.com/NaturalIntelligence/fast-xml-parser
Thanks to the team behind the node function-npm: https://flows.nodered.org/node/node-red-contrib-function-npm
Any feedback on using this would be really appreciated.
Enjoy !