[b]"What's the best way to convert XML to a dictionary in Python?"[/b] or [b]"How can I efficiently parse XML into

20 Replies, 1549 Views

Not a fan of xmltodict’s magic. Prefer `ElementTree` with a recursive function to build the dict.

Here’s a gist for a custom parser: [link]. It’s more code but way more flexible.



Users browsing this thread: 1 Guest(s)