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.
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.
