What's the best way to read XML in Python? Need help parsing files efficiently! or How do I read XML

20 Replies, 1403 Views

If you’re dealing with *massive* XML files, check out `sax` parser. It’s event-based, so it doesn’t load the whole file at once. Steeper learning curve, but worth it for performance.

`ElementTree` is still my fave for smaller stuff though.

Messages In This Thread



Users browsing this thread: 1 Guest(s)