# XML/ListBox Quandary

**URL:** <https://forum.kirupa.com/t/xml-listbox-quandary/157035>\
**Category:** flash\
**Created:** [July 29, 2005, 3:03pm UTC](https://forum.kirupa.com/t/xml-listbox-quandary/157035 "2005-07-29T15:03:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![puzzleMeister](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/puzzlemeister/32/1535_2.png) [@puzzleMeister](https://forum.kirupa.com/u/puzzleMeister)\
**Post date:** [July 29, 2005, 3:03pm UTC](https://forum.kirupa.com/t/xml-listbox-quandary/157035/1 "2005-07-29T15:03:02Z")

</div>

Hey all,

Is there any way to tell which item a user selects from a List? I already have a “change” event listener, but that doesn’t tell me WHICH item was clicked (at least, I don’t think it does.) Is there any way to tell?

Thanks,  
puzzleMeister  
:cool:

[edit: forgot the XML part…the list is generated from an xml file:]

```auto
 
<?xml version="1.0" ?>
<songs>
<song display="Hallelujah Chorus: A Soulful Celebration" url="001.mp3">
<composer>Georg Friedrich Handel</composer>
</song>
<song display="Something Latin" url="002.mp3">
<composer>Kirby Shaw</composer>
</song>
</songs>

```

The reason I need to know which song I’m on is so I can reference the \<composer\> child tag for the correct song.  
Thanks!
