How to read XML

3 views
Skip to first unread message

Debasree Das

unread,
May 7, 2011, 1:56:27 AM5/7/11
to bombayfl...@googlegroups.com
Hi All,

Please help me to read this xml..in this xml there are more than one tags for agriculture, education etc..i need a generalised function so that i can read any number of repeated attributes. Here 'matches' is the total number of facets like (agriculture,education,energy,finance,health,industry).

<marker id="101" name="India" tag="IN" lat="23" lng="75" matches="11"    
desc="agriculture, education:7.7%, finance:10.8, industry:64.84 " level="country"    
qtr="Q2" yr="2011" tooltip="IN tooltip" curr="INR" labelPos="left" sel="true"     
agriculture="1002" agriculture="200" agriculture="60" education="7.7" education="2" education="3" energy="300" energy="50" energy="150" finance="10.8" health=""  industry="64.84"/>
<marker id="102" name="Bangladesh"  tag=" BNG"   lat="24.111111" lng="90.212111" matches="8"
desc="Place : BNG, Currency: Taka (BDT), energy:1500, finance: 4.8"   level="country"
qtr="Q2" yr="2011" tooltip="DHK tooltip" curr="BDT"   labelPos="left"   sel="true"
agriculture=""  education=""   energy="1500" energy="300" energy="450" energy="4000" finance="4.8" finance="5.5" finance="3" finance="7" health=""  industry=""/>


Thanks in advance



Reply all
Reply to author
Forward
0 new messages