Friday, March 7, 2014

pull parsing xml





CSDN Mobile Channel (info)
http://mobile.csdn.net
open platform
Thu, 13 Jun 2013 10:26:37

iOS 7 new design does not end with the appearance
http://www.csdn.net/article/2013-06-12/2815740-iOS7-more-feature

Chao Hui
Wed, 12 Jun 2013 00:03:00
http://www.csdn.net/article/2013-06-12/2815740-iOS7-more-feature


WWDC 2013 Conference Revelation 10: Forward developers to pay large amounts of cash
http://www.csdn.net/article/2013-06-11/2815739-WWDC-2013-of-10-Revelation

Yue Tong
Tue, 11 Jun 2013 23:49:18
http://www.csdn.net/article/2013-06-11/2815739-WWDC-2013-of-10-Revelation




How to resolve this with a pull xml document, use the following method
for (int eventType = parse.getEventType (); eventType = XmlPullParser.END_DOCUMENT;! eventType = parse.next ()) {
switch (eventType) {
case XmlPullParser.START_DOCUMENT:
break;
case XmlPullParser.START_TAG:
String name = parse.getName ();
if (name.equalsIgnoreCase ("xxx")) {
......
} Else if (name.equalsIgnoreCase ("xxxx")) {
......
}
}
break;

case XmlPullParser.END_TAG:
.......
}
break;
}<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Dude, this is the manual labor ah, nor difficulty, define several model, set properties on it

No comments:

Post a Comment