def path_to_root(element, parent_dict):
    """
    Returns the path to the given element using the given parent dictionary.
    """
    current = element
    ele_path = []
    ele_path.append(element.tag)
    while current in parent_dict:
        parent = parent_dict[current] 
        ele_path.append(parent.tag)
        current = parent
    ele_path.reverse()
    path = ""
    for ele in ele_path:
        path += ele
        path += "/"
    return path[:-1]