![]() |
|
What's the best way to read XML in Python? Need help parsing! or 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: What's the best way to read XML in Python? Need help parsing! or How do I read XML files in Python ef (/thread-what-s-the-best-way-to-read-xml-in-python-need-help-parsing-or-how-do-i-read-xml-files-in-python-ef) |
“” - 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! |