[b]"What's the best way to read XML in Python? Need help parsing!"[/b] or [b]"How do I read XML files in Python ef

20 Replies, 1594 Views

For a *super simple* way to *read xml python*, try `untangle`. It turns XML into Python objects.

```python
import untangle
obj = untangle.parse('file.xml')
```
Now you can do `obj.root.child.thing`. No more nested loops!



Users browsing this thread: 1 Guest(s)