读写XML文件 [英] Reading and Writing XML file

查看:151
本文介绍了读写XML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在其中首先我想从收件箱中创建信息备份,并将其存储到 backup.xml 被储存 SD卡/为MyBackup / mybackup.xml

I have an Application in which first I want to create a backup of message from inbox and store it into backup.xml file which is stored at SDCARD/MYBACKUP/mybackup.xml

现在我想检索数据,存储在 SD卡/为MyBackup / mybackup.xml 和列表视图中显示的所有消息。

Now I want to retrieve data, stored on SDCARD/MYBACKUP/mybackup.xml and display all messages in listview.

推荐答案

有关编写XML文件到SD卡看到这个ANSWEER的 Qberticus的回答

For Writing XML file to sdcard see this answeer Qberticus's Answer

Android的读取文件仅仅是简单的,你必须使用XML解析 XML解析见本

android Reading file is just simple you have to use Xml parsing See This for XML parsing

要读/写SD卡,你需要给权限

   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

这篇关于读写XML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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