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

22 Replies, 1389 Views

lxml + `iterparse` is the golden combo for big files.

But here’s a wild idea: convert the XML to JSON first with `xmljson`, then process it. Weird, but might work.

Or, if you’re on Linux, `xmllint` can help trim the fat before parsing.

Messages In This Thread



Users browsing this thread: 1 Guest(s)