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. Is it possible install a package as "system"?

Hi,

I was wondering if it is possible to install an application package as
a system package (system="true" set in packages.xml)? How do Android
developers install those packages anyway?

Thanks.

Denis

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

2. Which files are affected by the installer?

Hi,

I am curious to find out which files are affected when a package is
installed?  I see that the .apk is copied to /data/app, and also it is
added to the packages.xml; what else is affected? Any data folders? If
I were to make a backup of the installed software, which files do I
need to backup?

Thanks.

Denis

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

3. Apache libs and Android support

4. Error every time I try to install an app

5. How many threads can be created or how to avoid thread leak

6. The Economic Crisis and Android

7. What Phones does Android Support?