开发者

How to parse the file present on SDCArd

开发者 https://www.devze.com 2023-01-21 08:49 出处:网络
I have a file which I created and is present in data/data/com.andr.filedemo/files/a.xml. Now I w开发者_运维知识库ant to parse this file using XML Pull parser. How can we give the path of that file or

I have a file which I created and is present in data/data/com.andr.filedemo/files/a.xml. Now I w开发者_运维知识库ant to parse this file using XML Pull parser. How can we give the path of that file or how we can access that file and then parse that file using XML Pull parser.

Can anyone help me in sortig out this issue?

Thanks in Advance,


reading file from sdcard :http://stackoverflow.com/questions/3779944/reading-a-specific-file-from-sdcard-in-android

parsing xml file : You can use below packages import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; //import org.xmlpull.v1.XmlPullParserException.html; import org.xmlpull.v1.XmlPullParserFactory;

0

精彩评论

暂无评论...
验证码 换一张
取 消