Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Seeking tutorial for making xml dropdown (combo box)?

Status
Not open for further replies.

CGann

Programmer
Jan 23, 2004
31
US
Anyone have a link to such beast?

I've got an xml file with various countries, cities, & data. I'd like to populate a dropdown list with the country & city, and populate a textarea with data based on the choice. The latter I already know. It's the dynamic creation of the dropdown where I'm clueless.

Here's an example of the xml:
<?xml version="1.0" encoding="iso-8859-1" ?>
<Country_data>
<Location>
<LocationID>US</LocationID>
<Country>United States</Country>
<Region>North Atlantic</Region>
<City>Boston</City>
<Data>Some facts & trivia</Data>
</Location>
<Location>
<LocationID>AU</LocationID>
<Country>Australia</Country>
<Region>Tasmania</Region>
<City>Hobart</City>
<Data>Some facts & trivia</Data>
</Location>
</Country_data>

Any thoughts?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top