How to bind XML data to List view?

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

Sponsored Links
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
<employee name="Joe" city="Dallas" />
<employee name="John" city="Newyork" />
<employee name="Mike" city="Atlanta" />

Thanks for ur help

Other Threads

1. getting 'permission denied' when trying to write to a file

Hi Paul,

By any chance, Are you belongs Colombo,Srilanka ?



2. Inner ListView not respecting layout gravity or width

On Fri, Jul 30, 2010 at 8:36 PM, William Ferguson

I'll be stunned if that works. Why nest ListViews? If your issue is
that you have multiple sources of data, stitch them together at the
adapter level.

Mark Murphy (a Commons Guy) | |

_Android Programming Tutorials_ Version 2.9 Available!


3. Framework : DevicePolicyManagerService

4. Is there a way to remove some permissions of already compiled apps?

5. Image Upload via HTTP POST/Google App Engine

6. (WTA) Agar hh bs auto on-off

7. How to populate a ViewStub using different ImageButtons?