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

22 Replies, 1149 Views

If memory’s the issue, `iterparse` is your friend, whether in lxml or the built-in Python XML parser.

But also—check your XML structure. If it’s super nested, even the best parser will cry.

Maybe pre-filter with `grep` or `sed` before parsing?

Messages In This Thread



Users browsing this thread: 1 Guest(s)