Parsing XML from a File : DOM : XML PYTHON TUTORIALS


PYTHON TUTORIALS » XML » DOM »

 

Parsing XML from a File


from xml.dom import minidom 
fsock = open('binary.xml')                
xmldoc = minidom.parse(fsock)                  
fsock.close()                                 
print xmldoc.toxml()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo XML
» DOM