If you’re stuck with huge XML, lxml is your best bet. But don’t sleep on `xmltodict`—it’s not a full xml parser python solution, but it’s great for quick conversions to JSON-like structures.
Memory tips:
- Use `iterparse`
- Delete nodes after processing
- Close files properly (sounds dumb, but it helps)
Memory tips:
- Use `iterparse`
- Delete nodes after processing
- Close files properly (sounds dumb, but it helps)
