0

I want to insert the Xml file data into MySQL table ,, by choosing which column to insert into ,, using Java How will this be done ?

Hadeel
  • 1
  • 1
  • Do you want to add the xml document in its entirety into the table or do you want to parse and insert the element contents to the table? – CoolBeans May 03 '11 at 00:34

1 Answers1

0

It really depends on the format of your XML file. If your XML file is a direct export from the MySQL file, please refer to this question.

If your XML is in some other format, then I would probably be using JAXB to parse XML into POJO, then write some logic to map the POJO into the database table.

Community
  • 1
  • 1
Alvin
  • 10,308
  • 8
  • 37
  • 49