Saves the information from the tree item to xml.
        
        :param      xparent | <xml.etree.ElementTree.Element>
                    item    | <QTreeWidgetItem>

def saveXml( self, xparent, item ):
        """
        Saves the information from the tree item to xml.
        
        :param      xparent | <xml.etree.ElementTree.Element>
                    item    | <QTreeWidgetItem>
        """
        key = nativestring(unwrapVariant(item.data(0, Qt.UserRole)))
        
        if ( key == 'separator' ):
            ElementTree.SubElement(xparent, 'separator')
        elif ( key == 'menu' ):
            elem = ElementTree.SubElement(xparent, 'menu')
            elem.set('title', nativestring(item.text(0)))
            
            for c in range(item.childCount()):
                self.saveXml(elem, item.child(c))
        else:
            elem = ElementTree.SubElement(xparent, 'action')
            elem.set('name', key)