#!/usr/local/bin/python3 import xml.etree.ElementTree as etree e = etree.fromstring('') print(etree.tostringlist(e))