安卓:最好的XML解析库? [英] Android: Best XML Parsing Library?

查看:160
本文介绍了安卓:最好的XML解析库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要解析在我的Andr​​oid应用程序的一些复杂的XML文件。是否有这样做好像有TouchXMl为iPhone任何好的图书馆吗?

I have to parse some complex xml files inside my Android application. Is there any good library for doing that like there is TouchXMl for iPhone?

推荐答案

或者你可以使用org.xmlpull.v1.XmlPullParser - 我发现它更容易比SAX解析器使用,它还有其他好处:

Or you could use the org.xmlpull.v1.XmlPullParser - I've found it much easier to use than the SAX Parser and it has other benefits:

<一个href="http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html">http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html

<一个href="http://www.bearcave.com/software/java/xml/xmlpull.html">http://www.bearcave.com/software/java/xml/xmlpull.html

这篇关于安卓:最好的XML解析库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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