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

22 Replies, 1773 Views

Lxml is the GOAT for large XML in Python. ElementTree is like a bicycle; lxml is a sports car.

For memory, stream the file instead of loading it all. And if you’re *really* desperate, split the XML into smaller files first.

Also, `lxml.html` is weirdly fast for some XML tasks—worth a shot if your data’s clean.

Messages In This Thread



Users browsing this thread: 1 Guest(s)