I need to open an XML file and save it as a CSV. I am not interested in extracting contents (i.e. via lmtree). I just want Python to do what I would normally do (open the XML file in Excel and save as a CSV file).
I know this can work to open the XML file in Excel:
import subprocess
subprocess.Popen("%s %s" % (application_path, filepath))
...but I'm not sure where to go from here.
Thanks in advance!
Updates:
Here's a sample file (it's an XML Spreadsheet file, if that helps): https://drive.google.com/open?id=193ML_2r5i56cEhydm1wYFQtXJCgRA3r_
No need for Python to enable editing. I just had to read this:
https://www.thrivenetworks.com/blog/turn-off-enable-editing-office-2010/