XML files

The menu structure can be defined using an “.xml” file that contains all the options you want regarding it; once you have created this file, insert the path to it in the “XML file path” text field. Once you have inserted this path, the “Edit Menu Structure” window will stop to be taken in consideration, as both structure-definition methods cannot work simultaneously.

Below you can see an example of a menu structure created using “.xml” and read the rules you need to follow in order to get the most out of this method.

<menu>
   <button text="Home" url="http://extendstudio.com" target="_self" id="HOM"/>
   <button text="Products" url="http://www.extendstudio.com/Products/All_Products/" target="_self" id="PRD">
   <button text="Movie FX" url="http://www.extendstudio.com/Products/Creative_MovieFX/Overview/"
 target="_self" id="MFX" selected="true"/>
   <button text="Text FX" url="http://www.extendstudio.com/Products/Creative_TextFX/Overview/" target="_self"
 id="TFX"/>
   </button>
   <button text="Contact" url="http://www.extendstudio.com/Company/Contact/" target="_self" id="CON"/>
</menu>

If you copy the text above and paste it in a text editor (Notepad, for example), and then save the file as ”name.xml”, you could use this file to generate a menu structure.

Now I will describe the XML tags and their available properties; the <menu> tag doesn’t have any properties and is used to hold the menu. The <button> tag holds a main menu or submenu button and has the following properties: text (button label), url (www address), target (same as in the first method), id (will be described in the “Button actions” section) and selected (a Boolean variable with values “true” and “false”; it corresponds to the “*” from the first method and it’s default value is “false”).