Trying to parse the following Python file using the lxml.etree.iterparse function.
\"sampleoutput.xml\"
-
Item 1
As far as I know, xml.etree.ElementTree usually expects the XML file to contain one "root" element, i.e. one XML tag that encloses the complete document structure. From the error message you posted I would assume that this is the problem here as well:
´Line 5´ refers to the second
tag, so I guess Python complains that there is more data following after the assumed root element (i.e. the first
tag) was closed.