What is the best way to parse an XML file line-by-line in Python, without using SAX? (`iterparse` behaves unexpectedly)
Question: What is the best way to parse an XML file in Python line-by-line? I seem to have a workaround for this but want to know if there is a better, widely-known solution than my somewhat hacky workaround.