=== XML === .. code-block:: python def elements_tree_to_dict(elements_tree): Convert an XML element tree to a Python dict. :param elements_tree: XML element tree :return: dict representation .. code-block:: python def dict_to_elements_tree(json_dict: dict): Convert a Python dict to an XML element tree. :param json_dict: dict to convert :return: XML string