Parsing XML: Loading an XML Document : XML Parse « XML « Python






Parsing XML: Loading an XML Document

 

#Loading an XML Document
from xml.dom import minidom  


xmldoc = minidom.parse('binary.xml') 
print xmldoc                                                        


print xmldoc.toxml()                                                

           
         
  








Related examples in the same category

1.Extracting the Ingredients from a Recipe with Regular Expressions
2.Processing XML with Regular Expressions
3.Simple XML Document Analysis
4.Parsing XML from Local Files and Remote URLsParsing XML from Local Files and Remote URLs
5.Parsing XML from a URL
6.Parsing XML from StringsParsing XML from Strings