elementtree.tostring python code example
Example 1: 'xml.etree.ElementTree.Element' to string python
xmlstr = ElementTree.tostring(et, encoding='utf8', method='xml')
Example 2: xml.etree.ElementTree.ParseError
Ok this error means something is wrong with your XML file.