Hi,
I have also same issue to address. But few extra things too.
1.) xsd validation.- if the xml formation aginst xsd is incorrect. I need to save the reason for it and show it to the user.
2.) perform user validations if xml is fine and save the records into DB.
I was thinking of using Castor api.
But my concern is of mapping around 150 fields to
java classes and then saving into DB.
Should I map java classe to xml fields using castor and then do validations etc.
or
should I use sax parser to parse the file and populate the fields one by one.
Please suggest some inputs.
Thanks,
Neeraj.