<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"> 
<channel> 
<title>CSDN 移动频道(资讯)</title> 
<link>http://mobile.csdn.net</link> 
<description>开放平台</description> 
<lastBuildDate>Thu, 13 Jun 2013 10:26:37</lastBuildDate> 
<item>
<title>iOS 7的新设计并非止于外表</title>
<link>http://www.csdn.net/article/2013-06-12/2815740-iOS7-more-feature</link>
<description><![CDATA[iOS 7新增了数百项新功能,其中包括控制中心(Control Center)。用户会经常使用部分控件,例如WiFi、屏幕亮度和音乐控件,控制中心有助于用户快速找到并使用所需要的控件。]]></description>
<author>晁晖</author>
<pubDate>Wed, 12 Jun 2013 00:03:00</pubDate>
<guid>http://www.csdn.net/article/2013-06-12/2815740-iOS7-more-feature</guid>
</item> 
<item>
<title>WWDC 2013大会10大启示:正向开发者支付大量现金</title>
<link>http://www.csdn.net/article/2013-06-11/2815739-WWDC-2013-of-10-Revelation</link>
<description><![CDATA[在自苹果应用商店开设之后的过去5年时间内,苹果已经给开发者支付了100多亿美元的资金。在业界移动开发者所获得的总收入中,约有四分之三是由苹果提供。]]></description>
<author>悦潼</author>
<pubDate>Tue, 11 Jun 2013 23:49:18</pubDate>
<guid>http://www.csdn.net/article/2013-06-11/2815739-WWDC-2013-of-10-Revelation</guid>
</item>  
</channel> 
</rss> 怎么用pull来解析这篇xml文档,用下面的方法
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;
}android开发