What's the best Python XML parser for handling large files efficiently? or How do you choose the righ

22 Replies, 1505 Views

Honestly, for big files, ditch DOM-based parsing. Even lxml can struggle if you’re not careful.

Try `xmltodict` if you want something simpler—it’s not the fastest, but it’s way easier to work with for nested XML.

Or, if you’re feeling adventurous, `pandas.read_xml()` might work if you can structure the data as a table.

Messages In This Thread



Users browsing this thread: 1 Guest(s)