I have a (old) tool which does not understand self-closing tags like . So, we need to serialize our XML files with opened/closed tags like this:
If you tostring lxml dom is HTML, you can use
HTML
etree.tostring(html_dom, method='html')
to prevent self-closing tag like