Example 1: Topmenu in XML format

<TopMenu>
   <TopMenuGroup text="Form" style="mystyle">
      <TopMenuCommand name="help" text="Help" image="quest" />
      <TopMenuCommand name="quit" text="Quit" acceleratorName="alt-F4"/>
   </TopMenuGroup>
   <TopMenuGroup text="Edit">
      <TopMenuCommand name="accept" text="Validate" image="ok" />
      <TopMenuCommand name="cancel" text="Cancel" image="cancel" />
      <TopMenuSeparator/>
      <TopMenuCommand name="editcut" text="Cut" />
      <TopMenuCommand name="editcopy" text="Copy" />
      <TopMenuCommand name="editpaste" text="Paste" />
   </TopMenuGroup>
   <TopMenuGroup text="Records">
      <TopMenuCommand name="append" text="Add" image="add" />
      <TopMenuCommand name="delete" text="Remove" image="delete" />
      <TopMenuCommand name="update" text="Modify" image="change" />
      <TopMenuSeparator/>
      <TopMenuCommand name="search" text="Query" image="find" />
   </TopMenuGroup>
</TopMenu>