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
Related Q & A:
- How to Display Big Data On A Google Map?Best solution by gis.stackexchange.com
- How do I bind data to a ComboBox?Best solution by Stack Overflow
- How can I display data in a listview?Best solution by Stack Overflow
- How to write binary data to a file?Best solution by Stack Overflow
- How to make collapsible columns for a table?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
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.