code: def loadXml( self, xaction ):
          
          if ( xaction.tag == 'menu' ):
              title = xaction.get('title', '')
              item = self.createMenuItem(title)
              for xchild in xaction:
                  item.addChild(self.loadXml(xchild))
              
          elif ( xaction.tag == 'separator' ):
              item = self.createSeparatorItem()
          
          else:
              key = xaction.get('name', '')
              item = self.createActionItem(key)
          
          return item
docs: Loads the xml action to the menu template tree.
          
          :param      xaction | <xml.etree.ElementTree>