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
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. ListView filtering with soft keyboard

Hello,

how can I use the new soft keyboard to filter a ListView?
--~--~---------~--~----~------------~-------~--~----~

2. Eclipse : Unknown error: SDK is not loaded yet. * upgrade failed *

Please check:
1- that you put the SDK path in windows > preferences > android
   => Note that this pref dialog should list the 3 sdk targets
available in 1.5_r1.

2- that you selected the SDK target (1.1 or 1.5) in the properties of
your project.

R/




--~--~---------~--~----~------------~-------~--~----~

3. about .dex files

4. Error when setting the android preferences in eclipse.

5. Custom library for android

6. Caller ID

7. GridView Usage