thanks again!
i'll try to implement it.
thanks again!
i'll try to implement it.
This is enlightening. Is there anyway the StaxEvenItemReader (or its variants) can process nest items. I have to parse a large file with complex structure like below. I am wondering if Spring Batch is good fit for it. Stuck here. Any idea would be much appreciated !
<xml...>
<records>
<record id="1">
<simpleValue>1</simpleValue>
<recordDetail>
<name>detail1</name>
<count>3</count>
</recordDetail>
<recordlinks>
<recordlink>
....
</recordlink>
<recordlink>
....
</recordlink>
</record>
<record id="2">
<simpleValue>2</simpleValue>
<recordDetail>
<name>detail2</name>
<count>3</count>
</recordDetail>
<recordlinks>
<recordlink>
....
</recordlink>
<recordlink>
....
</recordlink>
</record>
<records>
</xml>
Simon
Check out the details on the xstream marshaller (org.springframework.oxm.xstream.XStreamMarshaller ). If you don't like how it handles the XML then swap it out for a different marshaller.
Jeff