Convert nested xml to csv using python

Job ID: 32014437

Budget: $10 – $30 USD

I have a large XML file that I want to convert into CSV with all the fields and data.
I'm also trying to automate this on AWS Lambda that's a plus.

example raw XML and expected CSV is attached
Related categories: XML Python Data Processing Amazon Web Services Redshift