How to bind XML data to List view?

by Videoguy » Sat, 07 Mar 2009 06:39:47 GMT


Sponsored Links
 Hi
I have xml data like below. I want to bind name and its value to
different fields of ListView row. The examples I came across were for
database cursors and array type data.
I can iterate node by node and build two arrays one containing names
and other the cities and use array adapter.
Is there a better way to do this? Any way that takes an XML node
object and some how bind it to List view row field...

The xml data
<employees>
<employee name="Joe" city="Dallas" />
<employee name="John" city="Newyork" />
<employee name="Mike" city="Atlanta" />
...
</employee>

Thanks for ur help
Videoguy
--~--~---------~--~----~------------~-------~--~----~