简体   繁体   中英

What is the quickest way to convert a large XML file into a SQLite file?

I am retrieving data from an XML file but the file contains more than 15000 records, so my application is getting slowed. So I want to convert it into SQLLite file (by using programmatically or by using any tool).

Please provide me any solution for it.

I would suggest using Core Data. Parse the date, create managed objects and let Core Data persist those objects to a sqlite database.

The the following benefit will be, that you don't have to care for sql statements later on.

To prepopulate the core data db read this article . I'd write a simple xml2sqlite importer like in Ruby or PHP.

If you are not a friend of scripting languages then have a look at SQLite Manager it's a Firefox Plugin to manage SQLite database and it's capable of importing XML.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM