If you’re dealing with complex XML, `lxml` is worth a look. It’s faster than built-in libs and has better XPath support.
But yeah, for quick and dirty python XML to dict, xmltodict is the way.
Pro tip: Use `json.dumps()` after converting to dict if you need pretty printing.
But yeah, for quick and dirty python XML to dict, xmltodict is the way.
Pro tip: Use `json.dumps()` after converting to dict if you need pretty printing.
