I have a simple flow that generates xml file using a template. But I have troubles using the data from the payload that holds the nested properties, as if only the first level of nesting is supported.
The flow is below, the atrtibute "value" of the tag is empty in the resulting XML file. Am I missing something here?
[{"id":"10864cf4.ba412b","type":"inject","z":"e4c94bd5.d53538","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":460,"wires":[["491ab592.6ffc24"]]},{"id":"491ab592.6ffc24","type":"function","z":"e4c94bd5.d53538","name":"build data","func":"msg.array = [{text: \"111 111 111 111\", template: { \n valueName : \"BreakingNews\",\n fields: [\"BreakingText\"]\n }\n },\n {text: \"222 222 222\", template: { \n valueName : \"BreakingNews\",\n fields: [\"BreakingText\"]\n }\n }\n];\nreturn msg;","outputs":1,"noerr":0,"x":300,"y":460,"wires":[["fd6e7856.7c4f2","f6110285.4a7b18"]]},{"id":"fd6e7856.7c4f2","type":"template","z":"e4c94bd5.d53538","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"<?xml version=\"1.0\"?>\n<tickerfeed version=\"2.4\">\n <playlist name=\"BreakingNews_______\" target=\"carousel\" type=\"flipping_carousel\">\n <group>\n <description>Breaking News</description>\n <elements>\n {{#array}}\n <element>\n <template>{{{template.valueName}}}</template>\n <field name=\"{{{template.fields[0]}}}\">{{{text}}}</field>\n </element>\n {{/array}}\n </elements>\n </group>\n </playlist>\n</tickerfeed>","output":"str","x":460,"y":460,"wires":[["77413eda.bd5358"]]},{"id":"77413eda.bd5358","type":"debug","z":"e4c94bd5.d53538","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":600,"y":460,"wires":[]},{"id":"f6110285.4a7b18","type":"debug","z":"e4c94bd5.d53538","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":450,"y":400,"wires":[]}]