For parse xml python, I’d recommend `lxml` if you can install it. Way faster, especially for big files.
But if you’re stuck with built-ins, `ElementTree` + `iterparse` is your best bet.
Namespaces? Yeah, they’re a headache. Use `{namespace}tag` syntax or ignore ‘em if possible.
Here’s a good SO thread on this: [link-to-stackoverflow]
But if you’re stuck with built-ins, `ElementTree` + `iterparse` is your best bet.
Namespaces? Yeah, they’re a headache. Use `{namespace}tag` syntax or ignore ‘em if possible.
Here’s a good SO thread on this: [link-to-stackoverflow]
