I'm trying to set up a parser for a large XML file so I would like to take advantage of the SpringBatch framework characteristics to partition it.
I am new to this framework and I don't find any documentation or any examples of how can I do it. So I would be very pleased if someone could offer me any kind of orientation.
Is there any possibility of partition this file by its direct children of the XML? For example:
sample.xml (1gb)
<students>
<student>
<name>Sirius Black</name>
<phone>123</phone>
</student>
<student>
<name>Tom Riddle</name>
<phone>349</phone>
</student>
<student>
<name>Severus Snape</name>
<phone>934</phone>
</student>
</students>
I've studied examples about trying to partition flat files, but how can I do it with XML files?
PD: the direct child of that XML file would be "student"