Nested list in android with listview from several xml files

FOOLISH

New Member
I am creating an app that has several buttons on the first screen. Every button will parse a separate xml file and is supposed to create a nested list from that information.All the xml files have this structure:\[code\]<blalist><house> <name>Blaname1</name> <eaddress>195 bla steet</eaddress> <caddress>195 bla strasse</caddress> <telephone>123456</telephone></house><house> <name>Blaname2</name> <eaddress>15 bla steet</eaddress> <caddress>15 bla strasse</caddress> <telephone>12345685</telephone></house></blalist>\[/code\]After clicking the first button i would like to generate a listview consisting out of only the names from tag "name". So the list should only show Blaname1,Blaname2...
After clicking on one of the names all the other tags should be displayed as content; tags "eaddress","caddress","telephone" and three extra buttons.How do i go about that? I found loads of info for parsing xml to listview and some info about expandable listview but i couldnt really wrap my head around of how to go about this one. Please help!
 
Back
Top