You can use third party modules such as castor, xalan to parse xml data, convert into java objects and design a data access objects which can insert the data into the database.

cheers...hari