# XML ComboBox populating ListBox

**URL:** <https://forum.kirupa.com/t/xml-combobox-populating-listbox/154850>\
**Category:** flash\
**Created:** [July 13, 2005, 5:03am UTC](https://forum.kirupa.com/t/xml-combobox-populating-listbox/154850 "2005-07-13T05:03:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beaver88](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@beaver88](https://forum.kirupa.com/u/beaver88)\
**Post date:** [July 13, 2005, 5:03am UTC](https://forum.kirupa.com/t/xml-combobox-populating-listbox/154850/1 "2005-07-13T05:03:25Z")

</div>

[font=Times New Roman][size=3]XML ComboBox populating ListBox

I want to have a ComboBox linked to an xml file so someone could pick a category and the results would show in a listBox.

**Example:** ComboBox would have the following labels – Accommodations, Attractions, Restaurants, Ski Resorts, etc.

So when the user click on Accommodations it would give you the results in the ListBox – label=“Hilton Hotel”, Data=”[www.hilton.com](http://www.hilton.com)”  
label=“Best Western”, Data=”[www.bestwestern.com](http://www.bestwestern.com)”  
label=“Holiday Inn”, Data=”[www.holidayindn.com](http://www.holidayindn.com)”  
etc.

[/size][/font]  
[size=3][font=Times New Roman]I’m a newbie to components and just trying to figure it out. I’m just trying to use the xml, combobox, and listbox component to make this all work. I have a link to a .fla and it might help anyone figure out what I am trying to do. I have an xml file with but I believe the format is totally wrong.[/font][/size]

[font=Times New Roman][size=3][http://www.robertandkrista.com/sample.zip](http://www.robertandkrista.com/sample.zip)[/size][/font]

[font=Times New Roman]  
Oh ya I am using Flash MX 2004 Pro

Any help would be awesome, and greatly appreciated.[/font]
