Each header and it data from 1-n create a single record.
Since there can be millions of records, we cannot take entire records and convert it as XML.
Currently it fetches first 100 records , convert it into XML then fetch next 100 and so on.
XML decleration and <ItemInfo> tags are generated using stax parser. records are converted
tom<Item> using jaxb. But it is taking long time to execute. eg. 4 minutes to convert 1000 records in windows machine
with 4 gb memory.
The reason why i used stax is that, i donno how to insert <Item> inside <ItemInfo> tags after creating <Iteminfo > </ItemInfo>
tags using Jaxb.
Can you suggest me a better solution for this issue.