开发者

parsing xml file from sd card to console

I am still very green in Android but I have managed to create an xml file, pushed it into the sd card of my emulator. Can somebody help me on how I can read the xml file from my emulator and print its values on th开发者_如何学Ce console or on the ListView.

I will very much appreciate


how I can read the xml file from my emulator

You have to use an XML parser. You have DOM,SAX and the pull-parser available on android. Go through that article and you will be able to read data from your xml file.


Go through this article ... http://androidosbeginning.blogspot.com/2010/09/generic-xml-parsing-in-android.html .. probably this can give you an insight for DOM xml parsing.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜