I have following example code
example.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import xml.etree.ElementTree as ET
xliff = '''<?xml version="1.0"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2">
<file source-language="en" datatype="plaintext" original="ng2.template" target-language="de-DE">
<body>
<trans-unit id="ecb14a83c67a551ce9a04669d31465d977949484" datatype="html">
<source>Something to translate</source>
<target>Translations with entities & stuff</target>
</trans-unit>
</body>
</file>
</xliff>
'''
tree = ET.fromstring(xliff)
# same when using external file ET.parse(xliffPath)
when I run it in python 3.7 I am getting this error:
Traceback (most recent call last):
File ".\example.py", line 17, in <module>
tree = ET.fromstring(xliff)
File "PathToPython37\lib\xml\etree\ElementTree.py", line 1315, in XML
parser.feed(text)
xml.etree.ElementTree.ParseError: undefined entity: line 7, column 33
It complains about  
and &
and other html entities.
The question is how can I parse XML containing HTML entities with python 3.7 and preferably xml.etree.ElementTree
?