Hi ksultania,
Just so you know, the suggestion Francis brings into this thread of using the Talend Data Mapper is excellent.
The Talend Data Mapper is a module of our Platform offering which is dedicated and focus to handle and manage hierarchical and complex mapping over XML, FpML, JSON, EBCDIC, X12, EDI, etc...
If you need to engage someone from our Sales organization to discuss further our platform offering; please do so; send an email to sales@talend.com.
The Talend Data Mapper can really solve your requirement here and speed up the delivery of your project.
Best regards