lxml is my go-to for python xml stuff. Way faster than ElementTree and handles namespaces better.
For large files, stream with `lxml.etree.iterparse()` and clean up as you go.
Namespaces? Just ignore ’em if you can (lol), or use `lxml`’s `nsmap`.
Also, `xmltodict` is neat if you wanna work with dicts instead of nodes.
For large files, stream with `lxml.etree.iterparse()` and clean up as you go.
Namespaces? Just ignore ’em if you can (lol), or use `lxml`’s `nsmap`.
Also, `xmltodict` is neat if you wanna work with dicts instead of nodes.
