Converts the inputted element to a Python object by looking through
        the IO addons for the element's tag.
        
        :param      data     | <variant>
                    xparent | <xml.etree.ElementTree.Element> || None
        
        :return     <xml.etree.ElementTree.Element>

def toXml(cls, data, xparent=None):
        """
        Converts the inputted element to a Python object by looking through
        the IO addons for the element's tag.
        
        :param      data     | <variant>
                    xparent | <xml.etree.ElementTree.Element> || None
        
        :return     <xml.etree.ElementTree.Element>
        """
        if data is None:
            return None

        # store XmlObjects separately from base types
        if isinstance(data, XmlObject):
            name = 'object'
        else:
            name = type(data).__name__

        addon = cls.byName(name)
        if not addon:
            raise RuntimeError('{0} is not a supported XML tag'.format(name))

        return addon.save(data, xparent)