Is there an easier way to parse XML in Java?

前端 未结 13 522
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 02:50

I\'m trying to figure out how to parse some XML (for an Android app), and it seems pretty ridiculous how difficult it is to do in Java. It seems like it requires creating an

13条回答
  •  爱一瞬间的悲伤
    2020-11-30 03:10

    There is a very good example shows for XmlPullParser for any type of xml. It could also parse as a generic way, you do not need to change any thing for that just get that class and put into your android project.

    Generic XmlPullParser

提交回复
热议问题