If you’re just starting with python xml, ElementTree is easiest.
But for heavy lifting, lxml wins. Its XPath support is *chef’s kiss*.
10MB+ files? `iterparse` + manual garbage collection.
Namespaces? Ugh. Maybe pre-process the XML to strip ’em?
But for heavy lifting, lxml wins. Its XPath support is *chef’s kiss*.
10MB+ files? `iterparse` + manual garbage collection.
Namespaces? Ugh. Maybe pre-process the XML to strip ’em?
