I am looking for any suggestions as to whether my approach to aggregating xml could be improved. Firstly, in a plc i am formatting data in xml and sending it out a tcp/ip socket. In my node-red app I am using the join node to aggregate the xml node (which could span multiple buffers).
first, i created my own aggregation function to capture the complete node. Then it occurred to me the join node should be able to do this. But for the join node to work i still have to set the msg.complete property in an upstream function. (just putting it out there but maybe a good feature on the join node would be to have a endsWith condition??)
my upstream function node to set the complete param contains the following...
msg.complete = msg.payload.endsWith('</Root>')