Convert Python Dictionary to XML String or File - PythonForBeginners.com
Briefly