Namespaces are the worst. If you’re stuck, register the namespace and use it in your XPath like `xpath('//ns:element', namespaces={'ns': 'uri'})`.
For big files, `lxml` is still faster than ElementTree, but if you’re really desperate, maybe try `sax`? It’s ugly but lightweight.
Also, `lxml.html` has some cool tricks for messy XML/HTML if your data’s dirty.
For big files, `lxml` is still faster than ElementTree, but if you’re really desperate, maybe try `sax`? It’s ugly but lightweight.
Also, `lxml.html` has some cool tricks for messy XML/HTML if your data’s dirty.
