Proxy Community
[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 - Printable Version

+- Proxy Community (https://proxycommunity.com/forum)
+-- Forum: Technical Community Support (https://proxycommunity.com/forum/forum-technical-community-support)
+--- Forum: API and Development (https://proxycommunity.com/forum/forum-api-and-development)
+--- Thread: [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 (/thread-b-what-s-the-best-way-to-read-xml-in-python-need-help-parsing-b-%0A%0Aor-%0A%0A-b-how-do-i-read-xml-files-in-python-ef)

Pages: 1 2 3


“” - ProxyDrifterX - 04-04-2025

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!