For parse XML Python, don’t overlook `BeautifulSoup`! It’s meant for HTML, but works great with XML too.
```python
from bs4 import BeautifulSoup
with open('file.xml') as f:
soup = BeautifulSoup(f, 'xml')
print(soup.find('tag').text)
```
It’s super forgiving with broken XML and has a simple API. Plus, the docs are beginner-friendly.
```python
from bs4 import BeautifulSoup
with open('file.xml') as f:
soup = BeautifulSoup(f, 'xml')
print(soup.find('tag').text)
```
It’s super forgiving with broken XML and has a simple API. Plus, the docs are beginner-friendly.
