Xml drop menu help

Ok Ive got the xml menu working, now my problem is I tried to make a new action variable called “newGallery” that grabs the xml location for the xml image gallery to be loaded, howevery when I attempt to load it, the text is coming back “undefined”. Any help would be most apreciative. I would have thought that it would be just as simple as the newMenu action… can anybody see what im doing wrong or explain it to me?