Nested Menus in Resource XML?

Is it possible to define nested menus in the menu resource XML, or must I create this setup programmatically by pushing new menus when top-level menus are pressed as appropriate? For a treat I did the following in the Vivoactive simulator but I just see all menu-items listed at once.

<menu id="MainMenu" title="Main">
<menu-item id="item1">Item 1</menu-item>
<menu id="SubMenu" title="Submenu">
<menu-item id="item2">Item 2</menu-item>
</menu>
<menu-item id="item3">Item 3</menu-item>
</menu>
  • Former Member
    Former Member over 10 years ago
    You cannot nest menus in XML. What you're seeing is the resource compiler locating all the <menu-item> tags underneath the first <menu> tag. This actually is what I'd expect to happen right now. We have some better XML validation in the works at which point the XML you provided would cause a compiler error.