Which python xml parser is the most efficient for large files? or How do you handle XML parsing in Py

22 Replies, 1804 Views

For quick and dirty stuff, I use `xmltodict`. It’s not the fastest python xml parser, but it’s so easy.

For big files, though, lxml + `iterparse` is the way. Just make sure to `clear()` as you go!

Also, `pyarrow` can help if you’re moving data to pandas later.

Messages In This Thread



Users browsing this thread: 1 Guest(s)