'Read a burp log (XML) and extract the information.'

def _objs_from_burp_log(self, burp_file):

    xp = BurpParser()
    parser = etree.XMLParser(target=xp)
    try:
        requests = etree.fromstring(file(burp_file).read(), parser)
    except XMLSyntaxError as xse:
        msg = 'The    Burp    input    file    is    not    a    valid    XML    document.    The    parser    error    is:    "%s"'
        om.out.error((msg % xse))
        return []
    return requests
