读取XML与Android [英] reading xml with android
本文介绍了读取XML与Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要建立在Android上的应用程序从一个基于Windows的软件内置在VB中读取数据。
I need to build an app on android which read data from a windows based software built in vb.
我将如何做到这一点?使用XML是很好的选择。如果是的话那么如何读取XML与Android?
How would I do this?. Is using XML is good option. If yes then How to read xml with android?
推荐答案
您可以使用XML,JSON或一些其他格式。
You can use xml, json or a number of other formats.
我发现使用 XmlPullParser 很容易解析XML 。包括在链接的样品code。
I found using XmlPullParser to be easy for parsing xml. Included in that link is sample code.
我也有使用 GSON 以JSON解析了很好的经验。
I also had a good experience using gson to parse json.
这篇关于读取XML与Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文