私はこのようなものですXMLファイルがあります。今、私は、このXMLファイルを解析し、リストビューでこのようにそれを表示したいネストされたタグを使用してXMLを解析したら、ListViewにデータを表示する方法はありますか?
<activities>
<activity>
<filename>http://www.someurl.com/documentSetting/members/0/701/66/videos/521/521.mp4</filename>
<thumbnail>http://www.someurl.com/documentSetting/members/0/701/66/videos/521/521_120x90.jpg</thumbnail>
<id>521</id>
<is_private>0</is_private>
<comments>
<comment>
<id>111</id>
<body>Good video</body>
<member_id>oo7</member_id>
<profile_image>http://www.someurl.com/images/avatar/default_male_qlone.png</profile_image>
</comment>
<comment>
<id>222</id>
<body>nice video</body>
<member_id>123</member_id>
<profile_image>http://www.someurl.com/images/avatar/default_male_qlone.png</profile_image>
</comment>
<comment>
<id>333</id>
<body>gotcha!!!</body>
<member_id>11</member_id>
<profile_image>http://www.someurl.com/images/avatar/default_male_qlone.png</profile_image>
</comment>
</activity>
<activity>
<filename>http://www.someurl.com/documentSetting/members/0/701/66/videos/521/521.mp4</filename>
<thumbnail>http://www.someurl.com/documentSetting/members/0/701/66/videos/521/521_120x90.jpg</thumbnail>
<id>522</id>
<is_private>0</is_private>
<comments>
<comment>
<id>101</id>
<body>aaa</body>
<member_id>oo7</member_id>
<profile_image>http://www.someurl.com/images/avatar/default_male_qlone.png</profile_image>
</comment>
<comment>
<id>222</id>
<body>bbb</body>
<member_id>123</member_id>
<profile_image>http://www.someurl.com/images/avatar/default_male_qlone.png</profile_image>
</comment>
<comment>
<id>333</id>
<body>ccc</body>
<member_id>11</member_id>
<profile_image>http://www.someurl.com/images/avatar/default_male_qlone.png</profile_image>
</comment>
</activity>
を:::
はステータスとして、ファイル名のタグを考えてみましょう::
ステータス1:
Comment 1
Comment 2
Comment 3
Comment 4
ステータス2:
Comment 1
Comment 2
Comment 3
は、最初のアクティビティは、ネストされたタグとして4コメントを有すると仮定し、第二の活性は、彼のコメントタグ3コメントを有します。
これを行う方法?
これは 前に回答されているかなり確信してイム[http://stackoverflow.com/questions/4488915/how-data-can-be-parsing-in-xml-parsing-and-data-ショー・イン・リストビューインアンドロイド] [1] [1]:http://stackoverflow.com/questions/4488915/how-data-can-be-parsing-in-xml-parsing - and-data-show-in-listview-in-android – Kickaha
私は私の質問に記載されているように私の要件としてリストビューで表示するこのlink.butを見ましたか? plzすぐに私を助ける! – user1221162
ArrayAdapterは上記のように – Kickaha