XML Based menu help

Hi I am using the following xml menu

?xml version=“1.0”?>
<menu name=“links”>
<menu name=“Introduction”>
<item name=“Definition” action=“gotoAndStop” variables=“quizLink” />
<item name=“History” action=“gotoAndStop” variables=“history”/>
</menu>

then the actionscript is

This flash movie will only be published locally, so i want to know what would the function look like to direct the xml menu to a differant scene and frame?

also where would this function be placed in the code? would it be on the top line with the menu actionscript?