Is it possible to save "menu definitions" in an Xml file and then read them and implement the menu of the MainWindow?
Assume the following definition (well formed XML):
//<DTD etc goes here>
<menu name="file">
<menuItem>New</menuItem>
<submenu name="preferences">
<submenuItem>A</submenuItem>
<submenuItem>B</submenuItem>
</submenu>
</menu>
//<DTD etc goes here>
<menu name="file">
<menuItem>New</menuItem>
<submenu name="preferences">
<submenuItem>A</submenuItem>
<submenuItem>B</submenuItem>
</submenu>
</menu>
To copy to clipboard, switch view to plain text mode
How would I read this file and implement a menu out of this...I went through the doc but am not v.clear as to the syntax to use to implement a menu out of the XML file!

Thanks in advance!
Nupul
Bookmarks