[b]"What's the best Python XML parser for handling large files efficiently?"[/b] or [b]"How do you choose the righ

22 Replies, 1085 Views

If you’re stuck with a giant XML file, maybe don’t parse it all at once?

`lxml` + `iterparse` is the classic move, but `xml.sax` is lighter.

Or, if you’re lazy (like me), throw it into a database (PostgreSQL has XML support) and query it from there.

Messages In This Thread



Users browsing this thread: 1 Guest(s)