What's the best way to parse XML in Python? Need recommendations! or How do I efficiently parse XML f

16 Replies, 1385 Views

For big files, sax parsing is the unsung hero.

Python parse XML with `xml.sax` is memory-efficient because it’s event-driven. No loading the whole file at once.

Downside? It’s more code, and you gotta write handlers for everything. But if you’re dealing with HUGE files, it’s worth the effort.

Messages In This Thread



Users browsing this thread: 1 Guest(s)