Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
from xml.dom import minidom
fsock = open('xml exemple.xml')
xmldoc = minidom.parse(fsock) 
fsock.close()                 
print xmldoc.toxml()
toxml n'existe pas en version 3.6 et je ne vois pas ce qui le remplace

https://docs.python.org/3/library/xml.dom.html