# XML menubar listener

**URL:** <https://forum.kirupa.com/t/xml-menubar-listener/66333>\
**Category:** programming\
**Created:** [October 4, 2004, 10:38pm UTC](https://forum.kirupa.com/t/xml-menubar-listener/66333 "2004-10-04T22:38:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wonko](https://avatars.discourse-cdn.com/v4/letter/w/8dc957/32.png) [@wonko](https://forum.kirupa.com/u/wonko)\
**Post date:** [October 4, 2004, 10:38pm UTC](https://forum.kirupa.com/t/xml-menubar-listener/66333/1 "2004-10-04T22:38:24Z")

</div>

I’m hoping that someone around here can help me before I tear out my last hair.

I have a functional menubar component that’s tied to an external XML file using the XML connector component. My XML looks like this (and was pulled from the fantastic XML drop-down menu tutorial by senocular):

\<menu-item name=“google” action=“getURL” variables=“[http://www.google.com](http://www.google.com)” /\>

All appears fine. The drop-down appears. The text in the drop-down is correct. But clicking a menu item yields absolutely nothing. Clearly, a listener is required. However, I can’t find a tutorial for creating a listener for actions and variables in the XML file. I tried to use Senocular’s XML drop-down tutorial as a base but I can’t get it to work.

I’d really appreciate it if someone could point me in the right direction. Perhaps the great Senocular himself?
