lxml is *chef's kiss* for *read xml python* tasks. Yeah, it's external, but the XPath support alone makes it worth it.
```python
from lxml import etree
doc = etree.parse('file.xml')
```
Way cleaner than ET for complex stuff.
Also, check out `xmltodict` if you wanna treat XML like JSON. Lifesaver for quick hacks!
```python
from lxml import etree
doc = etree.parse('file.xml')
```
Way cleaner than ET for complex stuff.
Also, check out `xmltodict` if you wanna treat XML like JSON. Lifesaver for quick hacks!
