Android : How to parse xml string in android

on Friday, September 12, 2014


I want to parse xml string from the following url. From this URL how to get team names, score, overs.


Cricbuzz Live Score RSS Feed



<match id="3" type="TEST" srs="Bangladesh Tour of West Indies, 2014" mchDesc="WI vs BAN" mnum="1st Test" vcity="Kingstown, St Vincent" vcountry="West Indies" grnd="Arnos Vale Ground" inngCnt="4" datapath="http://synd.cricbuzz.com/j2me/1.0/match/2014/2014_WI_BDESH/WI_BAN_SEP05_SEP09/">
<state mchState="complete" status="WI won by 10 wkts" TW="Ban" decisn="Fielding" addnStatus="" splStatus=""></state>
<Tm id="10" Name="WI" sName="WI" flag="1"/>
<Tm id="6" Name="Ban" sName="BAN" flag="1"/>
<Tme Dt="Sep 05 2014" stTme="14:00" enddt="Sep 09 2014"/>
<mscr>
<inngsdetail noofovers="0" rrr="0" crr="4.88" cprtshp="13(16)"/>
<btTm id="10" sName="WI">
<Inngs desc="2nd Inns" r="13" Decl="0" FollowOn="0" ovrs="2.4" wkts="0"/>
<Inngs desc="1st Inns" r="484" Decl="1" FollowOn="0" ovrs="160" wkts="7"/>
</btTm>
<blgTm id="6" sName="BAN">
<Inngs desc="2nd Inns" r="314" Decl="0" FollowOn="1" ovrs="113.3" wkts="10"/>
<Inngs desc="1st Inns" r="182" Decl="0" FollowOn="0" ovrs="71.4" wkts="10"/>
</blgTm>
</mscr>
</match>


Anyone Suggest me to how to parse this?


0 comments:

Post a Comment