开发者

Parsing a XML file in Android

Can anyone provide me with the info 开发者_开发知识库to parse an XML file in an Android application. Any link on this will be helpful.


There are 3 different ways to parse XML in android: SAX parser, DOM parser, pull parser. Which one to use depends on how big your xml is, and what you want to do with it. See working with xml in Android for details. (Which, incidentally, is the 1st link if you google "Android XML"].


Parsing XML in android is done in more than one ways in android.. Android.developer is the best reference that you can go for.

you can ieither use SAX or DOM.. Here is the link which will give u idea about parsing XMl

http://developer.android.com/reference/javax/xml/parsers/package-summary.html

go through the documentation first it will help u a lot


You can find a great explanation at this link.

You basically use the dom4j SAXReader to parse the XML using XPath.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜