How to insert into table in XML which has more than table?

How to insert XML data into a table?

  • I would like to insert data from an XML file into a mysql database. Thank you for your help !

  • Answer:

    I don't know if there is any general purpose tools for importing XML into a database, so you will probably have to do a small amount of programming. Use any programming language that is able to read XML easily. Then iterate through each row and either insert the data into MySQL directly, or write to a MySQL-script which you can import into MySQL afterwards. Personally I think I might do it in either PHP (write directly to database) or in XSLT (generate MySQL script), but it all depends on what language you're most comfortable with.

Jostein Austvik Jacobsen at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.