`ElementTree` is fine for small stuff, but if you’re dealing with big files, `lxml` is the way to go.
Pro tip: disable unused features like comments or DTDs to speed things up.
Also, avoid parsing the whole thing at once—use `iterparse` like someone else said.
Python’s docs have a section on this, btw.
Pro tip: disable unused features like comments or DTDs to speed things up.
Also, avoid parsing the whole thing at once—use `iterparse` like someone else said.
Python’s docs have a section on this, btw.
