What's the best way to parse XML in Python? Looking for a reliable xml parser python solution. or Str

24 Replies, 2402 Views

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)

Messages In This Thread



Users browsing this thread: 1 Guest(s)