NlsMenu supports loading menu from XML file or XML string. The xml defines the menu structure and configuration.

Here is the xml file used to generate the menu below.

Loading menu...

menu theme: aqua

Drop on click in this example is activated, please click on the menu item to drop down the submenu.

To load menu from xml:

<!--define a placeholder/container for the menubar with an unique id.-->
<div id="xmlMenuDiv"><span style="font-size:7pt;color:#990000">Loading menu...</span></div>

  NlsMenuUtil.loadFromXMLFile("menu.xml", "xmlMenuDiv");

Please check NlsMenu documentation for more information about NlsMenu XML functions.