如何将XML转换为SQLite数据库在Android平台? [英] How to convert xml to sqlite database in android platform?

查看:311
本文介绍了如何将XML转换为SQLite数据库在Android平台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有内部消息XML文件。我想XML文件SQLite数据库转换而不android平台(Java语言)使用的是SD卡。没有人有任何想法怎么办呢?

I have a xml file with info inside. I want to convert the xml file to sqlite database without using a SD card in android platform(Java Language). Does anyone have any idea how to do it?

推荐答案

您可以使用使用XML文件更新SQLite数据库解析器(DOM,SAX,JSON)。把你的XML文件中的资产的文件夹,然后用Asset Manager的帮助下阅读。有关此更多信息请参考下面的链接。

You can use parser(DOM, SAX, JSON) for update sqlite database using the XML file. Put your xml file in the assets folder and then read with help of Asset Manager. For more info about this refer below links.

[http://www.androidhive.info/2012/05/android-rss-reader-application-using-sqlite-part-2/] [1]

[http://www.androidhive.info/2012/05/android-rss-reader-application-using-sqlite-part-2/][1]

http://martin.cubeactive.com/android-filling-a-table-from-resource-file-using-xml-sqlite/

这篇关于如何将XML转换为SQLite数据库在Android平台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆