Im trying to group a big file into each individual file (group on their position index ) Sample XML: Expected output: firstposition.xml secondposition.xml thirdposition.xml Where am I on this situation? I can split the file and manipulate them as needed but I wasn’t able to achieve my desired result. First Im getting all positions and contract like this then I