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. How long does it take for an application to get indexed to the Marketplace?

Hi Mark,

Did you sign it? or use the export thing in eclipse? It won't work
with debug certificate I don't think.  Actually I just added my first
game to the market.  It comes up ok when I look for it on phone market
app.  But the web site only seems to show top or featured apps.  Plus
I got two of the same screen shots by accident, then updated the
second one, but it has stayed the same on the market.

I also have a question for you all.

If I want to make a free light version that just times out after some
period, can I just make a shorter certificate or do I need to make
code to count days and stick some value in a registry or record
peoples phone numbers as they download or something complicated like
that?  Anyone got any good tips on making short lived trial versions
of their applications?  Are there any short cuts or is it like another
few days programming?

oh yes one more question.  does anyone know how to get a link directly
to the application in the market rather than just say "you can find it
on the market" on your yep site?  Oh yes and what are those funny
square barcode download image thing? anyone know about them and how to
make use of them to download things?

Good luck with your programs Mark, sorry to ramble on with questions,
and not many answers, perhaps someone knows about this stuff and could
be of use to use both?

Cheers, Dan

http://www.cuffedtothekeyboard.com






-- 

2. Marketplace "View more applications" button

Suggestion for the Marketplace:

Change the "View more applications" button to be called "More by
developer".

Note:  It is under the "About the developer" title, however, I doubt
many people take notice of the title.

Please leave a comment or suggestion if you agree / disagree.

-- 

3. Application component not instantiated before launching Activity

4. Need help to redirect nav control to inserted sub-list

5. View angle and refresh lag in Google Maps

6. Slides through the game list of Market, there is no "Loading" progress bar displayed.

7. creating short cut keys