Question Populate a Combobox

vazquezjm

New member
Joined
Feb 3, 2009
Messages
1
Programming Experience
1-3
Hi all!

I'm starting with VB.Net and have a question. I need to fill a combobox with a XML file which has the following structure:

VB.NET:
<list>
	<site>
		<site_id>14761</sitio_id>
		<nombre>Site Name 1</nombre>
	</site>
	<site>
		<site_id>15775</sitio_id>
		<nombre>Site Name 2</nombre>
	</site>
</list>

What I need is to fill the combo in such a way that I can use the value stored in each element:

Site Name 1 > 14761
Site Name 2 > 15775

Thank you!
 
You can load the xml file into a dataset and bind the combo box to the DS.

You could also look into using Linq to get the data into the combobox.
 
Back
Top