Using a Split node or split message

Hi.

I would need some help splitting a message so it is a valid xml. I have used "<batch name" to split in the beginning of the xml. But I want i still want <batch name in the beginning of the payload.

Hope you understand what I mean.

Best Regards Niclas!

I suspect that is not the right node to do what you want.

I solved it. just tried to add a function node after with "<batch name"+msg.payload.

not nice but it worked for now.

I guess it comes down to: "so long as it works".

If you are starting with valid xml then you should be able to feed that into an xml node and it will convert it to a javascript object. Then you can access the contents much more easily.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.