How to create a SQLite3 database from an XML file?
-
Hi all, I have to create a database in SQLite3. I already have the sctructure of this database in an XML file (listing table and column names, attributes and so on). Is it possible to create/import the database in SQLite3 from an XML file? How can I do? Thanks in advance!
-
Answer:
If the data contained in the XML file is small it might be quicker to manually create the database structure using the sqlite3 CREATE commands. If the data contained in the XML file is such that it would take hours to process manually I would suggest using xsl transformation to generate the SQL CREATE statements from the XML file. I use xsl files to transform data stored in XML files into HTML or csv formats for reporting. I don't see why though with a little creativity you wouldn't be able to use xsl to generate a file with all the SQL statements necessary to create the DB contents from the XML file. If you need help on it post some of the xml data, If the data is sensitive you can change it. I'm only interested in how the XML is structured.
Axel Babbel at Yahoo! Answers Visit the source
Related Q & A:
- How To Create A Profile In Facebook?Best solution by Yahoo! Answers
- How To Create A Forum?Best solution by Super User
- How to Create a file in "my documents" folder?Best solution by Stack Overflow
- How to create a virtual file on mac OS X?Best solution by Super User
- How to create a Database in FoxPro and how to retrieve and sort it out?Best solution by Yahoo! Answers
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.