def process_instance(el):
    """
        Process each 'process instance' element from the .mxml file
        and returns as dict
    """
    resp = []
    for entry in el[1:]:
        r = {
            "TraceId": el.get("id")
        }
        for item in entry:
            if item.tag == 'Data':
                r[item.tag] = item[-1].text
            else:
                r[item.tag] = item.text
        resp.append(r)
    return resp