Parsing XML from Local Files and Remote URLs : XML Parse : XML : Python examples (example source code) Organized by topic

C++
PHP
Python
Python Home »  XML   » [  XML Parse  ]  Screenshots 
 



Parsing XML from Local Files and Remote URLs




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

print xmldoc.toxml()                              
           
       
Related examples in the same category
1.  Parsing XML from a URL
2.  Parsing XML from Strings Parsing XML from Strings
3.  Parsing XML: Loading an XML Document
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.