def parse_with_lxml():
    root = etree.fromstring(CONTENT)
for log in root.xpath('//log'):
    print(log.text)

def parse_with_stdlib():
    root = ElementTree.fromstring(CONTENT)
for log in root.iter('log'):
    print(log.text)
if __name__ == '__main__':
    pass
Разбор CDATA в xml с помощью python