Getting multiple elements from an XML file

Put your problem here if it does not fit any of the other categories.

Getting multiple elements from an XML file

Postby erbedo » Thu Mar 13, 2008 9:49 pm

Hi, first message for me here :)

I'm writing an application that has to display a lot of information, getting them from an XML file (in the future, multiple XML file with the same structure).

I'm wondering what is the best way to do that.
Basically, I've the mentioned XML file, which contains various informations. What I want to do is output them in a ListView, for example, and give the user the possibility to click them and do various things.

By now it's pretty simple, but the elements carry more than one information, such name, date, URl and more. So, in the ListView I'd want to display only the name and the date, leaving all the other info hidden for later management.

So, what is the best way to do that?

Thank you, great job :)
erbedo
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Mar 13, 2008 9:39 pm

Top

Postby cabernet1976 » Fri Mar 14, 2008 2:23 am

Hi erbedo,

How about this thread :arrow: reading_xml_documents-t287.html :?:
Upload2Flickr's blog: http://upload2flickr.blogspot.com
cabernet1976
Senior Developer
Senior Developer
 
Posts: 154
Joined: Fri Nov 16, 2007 2:34 am
Location: China

Postby erbedo » Fri Mar 14, 2008 12:03 pm

cabernet1976 wrote:Hi erbedo,

How about this thread :arrow: reading_xml_documents-t287.html :?:


Hi cabernet
I know how to parse an XML document. In fact, I can read the first bunch of tag correctly. What I didn't know is how to display them with additional informations hidden. Every element carry multiple informations, and I want to know everything about the object, but on the first screen the user has to see only two of them.

TIA
erbedo
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu Mar 13, 2008 9:39 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 22 guests