Hi. I want to insert payload from an xml in a template node.
I have succseded with a ui form but i don´t know why this is not working?
[{"id":"f53853fa.2a74","type":"template","z":"75a648ae.abdc08","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<note>\n<to>Tove</to>\n<from>Jani</from>\n<heading>Reminder</heading>\n<body>Don't forget me this weekend!</body>\n</note>","output":"str","x":1200,"y":700,"wires":[["57d01be.b3113e4"]]},{"id":"57d01be.b3113e4","type":"xml","z":"75a648ae.abdc08","name":"","property":"payload","attr":"","chr":"","x":1330,"y":700,"wires":[["5ce3f42f.58da1c"]]},{"id":"aace4f7e.4f8b9","type":"inject","z":"75a648ae.abdc08","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":1030,"y":700,"wires":[["f53853fa.2a74"]]},{"id":"51b231a1.24083","type":"template","z":"75a648ae.abdc08","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"My Name is {{{payload[0]}}} {{{payload[1]}}}","output":"str","x":1800,"y":700,"wires":[["9f57c458.80fc88"]]},{"id":"42560560.773f7c","type":"join","z":"75a648ae.abdc08","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"2","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":1650,"y":700,"wires":[["51b231a1.24083"]]},{"id":"9f57c458.80fc88","type":"debug","z":"75a648ae.abdc08","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1950,"y":700,"wires":[]},{"id":"5ce3f42f.58da1c","type":"function","z":"75a648ae.abdc08","name":"Testing","func":"var msg1 = { payload:msg.payload.note.to[0] };\nvar msg2 = { payload:msg.payload.note.from[0] };\nvar msg3 = { payload:msg.payload.note.heading[0] };\nvar msg4 = { payload:msg.payload.note.body[0] };\nreturn [ msg1, msg2, msg3, msg4 ];\n","outputs":4,"noerr":0,"initialize":"","finalize":"","x":1500,"y":700,"wires":[["42560560.773f7c"],["42560560.773f7c"],["42560560.773f7c"],["42560560.773f7c"]]}]