Returns the new menu template based on the user preferences.
        
        :return     <str>

def menuTemplate( self ):
        """
        Returns the new menu template based on the user preferences.
        
        :return     <str>
        """
        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)