0
這是我的XML:Android的解析
<STATE sname="AndhraPradesh" >
<DISTRICT dname="Ananthapur" >
<address>
Apollo Pharmacy, ANANTHAPUR (0.0 km)
D.NO.15/545, NEAR SAPTHAGIRI CIRCLE ANANTHAPUR, Rayalaseema, ANANTHAPUR, ANATHAPUR , ANDHRA PRADESH
</address>
</DISTRICT>
<DISTRICT dname="Kurnool" >
<address>
Apollo Pharmacy, KURNOOL (0.0 km)
municipal no. D No: 46/697-A, Budwarpeta, KURNOOL, KURNOOL, ANDHRA PRADESH
</address>
<address>
Apollo Pharmacy, KURNOOL 2 (0.0 km)
1-155, Rayalaseema, KURNOOL 2, KURNOOL, ANDHRA PRADESH
</address>
</DISTRICT>
<DISTRICT dname="EastGodawari" >
<address>
Apollo Pharmacy, VENKATESWAR COLONY (MAHABUB NAGAR) (0.0 km)
D.No.7-4-58/A, Main Road Opp:A.P.S.E.B.Buliding, Mahabub, VENKATESWAR COLONY (MAHABUB NAGAR), HYDERABAD, ANDRA PRADESH
</address>
<address>
Apollo Pharmacy, MAHABOOBNAGAR (0.0 km)
1-5-35/6, Beside Andhrabank ATM, Mahaboobnagar, Telangana, MAHABOOBNAGAR, HYDERABAD, ANDHRA PRADESH
</address>
<address>
Apollo Pharmacy, METTUGUDA - MAHABOOBANAGAR - 2 (0.0 km)
1-4-30/D/B, Mahaboobnagar, METTUGUDA - MAHABOOBANAGAR - 2, HYDERABAD, ANDHRA PRADESH
</address>
</DISTRICT>
</STATE>
<STATE sname="AndhraPradesh1111" >
<DISTRICT dname="Ananthapur1111" >
<address>
Apollo Pharmacy, ANANTHAPUR (0.0 km)
</address>
</DISTRICT>
<DISTRICT dname="Kurnool1111" >
<address>
Apollo Pharmacy, KURNOOL (0.0 km)
</address>
<address>
Apollo Pharmacy, KURNOOL 2 (0.0 km)
</address>
</DISTRICT>
<DISTRICT dname="EastGodawari1111" >
<address>
Apollo Pharmacy, VENKATESWAR COLONY (MAHABUB NAGAR) (0.0 km)
</address>
<address>
Apollo Pharmacy, MAHABOOBNAGAR (0.0 km)
</address>
<address>
Apollo Pharmacy, METTUGUDA - MAHABOOBANAGAR - 2 (0.0 km)
</address>
</DISTRICT>
</STATE>
我想在紡紗中顯示的值。當我選擇狀態時,相關區域必須加載到區域微調器中。基於區域微調,該區域的地址應在文本視圖中加載。
您已經嘗試了什麼? – 2012-07-31 06:04:19
歡迎來到Stackoverflow社區。如果可能的話,在這裏提問,然後展示你的工作,無論你嘗試到目前爲止。 – 2012-07-31 06:05:36
我會看看[this](http://www.androidhive.info/2011/11/android-xml-parsing-tutorial/) – 2012-07-31 06:24:30