Dunno .. its working for me .. here's the Flow
[{"id":"fa0639af.697938","type":"inject","z":"ac0f61dd.69e26","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Zones Set value bottom [°C] Zone 10 from 240 to 215","payloadType":"str","x":150,"y":700,"wires":[["5c600d6c.fa489c"]]},{"id":"a37dbc9f.4775e8","type":"function","z":"ac0f61dd.69e26","name":"Regex match","func":"let arr = Object.values(msg.payload.SOLDER_PRG.History[0])\n\nlet result = {}\n\narr.forEach(el => {\n \n // test if Zone actually exists\n if ( /Zone\\s(\\S)+/g.test(el[0])) {\n //regex match digits (numbers) \n let from = Number(el[0].match(/\\d+\\,?\\d+?/g)[6].replace(\",\", \".\"))\n let to = Number(el[0].match(/\\d+\\,?\\d+?/g)[7].replace(\",\", \".\"))\n // filter out the zone with regex\n let zone = el[0].match(/Zone\\s(\\S)+/g)[0]\n result[zone] = {zone, from, to}\n }\n // test if Service Conveyor exists\n if (/Service\\s\\sConveyor/g.test(el[0])) {\n let from = Number(el[0].match(/\\d+\\,?\\d+?/g)[6].replace(\",\", \".\"))\n let to = Number(el[0].match(/\\d+\\,?\\d+?/g)[7].replace(\",\", \".\"))\n // filter out the Conveyor with regex\n let conv = el[0].match(/conv\\.\\d+/g)[0]\n result[conv] = {conv, from, to}\n }\n // test if Conveyor width exists\n if (/Conveyor\\swidth/g.test(el[0])) {\n let from = Number(el[0].match(/\\d+\\,?\\d+?/g)[6].replace(\",\", \".\"))\n let to = Number(el[0].match(/\\d+\\,?\\d+?/g)[7].replace(\",\", \".\"))\n \n result[\"produza\"] = {from, to}\n }\n \n})\n\n\nmsg.payload = result\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":670,"y":700,"wires":[["fcfd4a1b.334da8"]]},{"id":"fcfd4a1b.334da8","type":"debug","z":"ac0f61dd.69e26","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":890,"y":700,"wires":[]},{"id":"4ed03110.fe5be8","type":"xml","z":"ac0f61dd.69e26","name":"","property":"payload","attr":"","chr":"","x":450,"y":700,"wires":[["a37dbc9f.4775e8","bfeb104a.25ef58"]]},{"id":"5c600d6c.fa489c","type":"file in","z":"ac0f61dd.69e26","name":"xml","filename":"C:\\Users\\user\\desktop\\baseboard.xml","format":"utf8","chunk":false,"sendError":false,"encoding":"none","x":290,"y":700,"wires":[["4ed03110.fe5be8"]]},{"id":"bfeb104a.25ef58","type":"debug","z":"ac0f61dd.69e26","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":600,"y":640,"wires":[]}]
Change the File in path to your file