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.
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.