I need to get data from an XML file and store it into a MySQL Database. I am thinking of using a SAX Parser for parsing the data but I am not sure of how to store data efficiently into database, I am thinking of few technologies like JDBC and Hibernate but I wanted to ask about what would be the efficient way of doing it?
Note: Here programming language is Java.
解决方案
You could use Castor witch is an open source data binding framework for moving data from
XML to Java programming language objects and from Java to
databases.
I found also article series in IBM developerWorks that describe using Castor suited to your needs.