SyntaxFix
Write A Post
Hire A Developer
Questions
The outfile should be in binary mode.
outFile = open('output.xml', 'wb')