Function node to join node?

Hi. I will try to explain what i trying to accomplish.

I have a large xml file that i want to filter and sort some data.

I´m not good i programming but maybe you understad what i trying to accomplish with this code.

msg 1 schould contain id and name on the firs controller
msg 2 same but for controller 2

and i want this in a array.

Regards Niclas

[{"id":"96891eae.23a83","type":"function","z":"75a648ae.abdc08","name":"","func":"var msg1 = { payload:msg.payload.installationTree.folder[0].nodes[0].controller[0] \" && \" msg.payload.installationTree.folder[0].nodes[0].name[0]  };\nvar msg2 = { payload:msg.payload.installationTree.folder[0].nodes[0].controller[1] \" && \" msg.payload.installationTree.folder[0].nodes[0].name[1]  };,\nvar msg3 = { payload:msg.payload.installationTree.folder[0].nodes[0].controller[2] \" && \" msg.payload.installationTree.folder[0].nodes[0].name[2]  };\nvar msg4 = { payload:msg.payload.installationTree.folder[0].nodes[0].controller[3] \" && \" msg.payload.installationTree.folder[0].nodes[0].name[3]  };\nreturn [ msg1, msg2, msg3, msg4 ];\n","outputs":4,"noerr":6,"initialize":"","finalize":"","x":1460,"y":420,"wires":[["1efa0cd0.956f23"],[],[],[]]},{"id":"1efa0cd0.956f23","type":"join","z":"75a648ae.abdc08","name":"","mode":"custom","build":"array","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"3","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":1620,"y":420,"wires":[[]]}]

As string "valuevalue"

var msg1 = { payload:msg.payload.installationTree.folder[0].nodes[0].controller[0] + msg.payload.installationTree.folder[0].nodes[0].name[0]  };

As array ["value", "value"]

var msg1 = { payload:[msg.payload.installationTree.folder[0].nodes[0].controller[0],  msg.payload.installationTree.folder[0].nodes[0].name[0] ]  };

Thanks. I will try this