code: def menuTemplate( self ):
          
          xml = ElementTree.Element('menu')
          for i in range(self.uiMenuTREE.topLevelItemCount()):
              self.saveXml(xml, self.uiMenuTREE.topLevelItem(i))
          
          projex.text.xmlindent(xml)
          return ElementTree.tostring(xml)
docs: Returns the new menu template based on the user preferences.
          
          :return     <str>