def xml_element_to_dict(e):
    """
    Creates a dictionary of the given xml tree.

    Parameters
    ----------
    e : str
        str of an xml tree

    Returns
    -------
    A dictionary of the given xml tree
    """
    d = {}
    for c in e.getchildren():
        d[c.tag] = c.text
    return d
