[b]"What's the best way to parse and manipulate XML in Python?"[/b] or [b]"How do you handle XML data efficiently

18 Replies, 636 Views

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?

Messages In This Thread



Users browsing this thread: 1 Guest(s)