We have a requirement to parse the xml file (1.5GB) and transform/group the content based on the one of the field value and write write multiple files based on the each group.
=== Sample Input ==<?xml version="1.0" encoding="UTF-8" ?>
testTest1 Test2 Test1
===== output File 1===<?xml version="1.0" encoding="UTF-8" ?>
===== output File 2===<?xml version="1.0" encoding="UTF-8" ?>
I have tried using the xml parser , split based on child and add headers back. Problem here is as it is huge data CPU and memory are going high and getting Connection lost error.
Have also tried xslt but still got same issue.
Can you please help me to design the solution with memory optimization.
Thanks in advance.