Parsing XML from a URL : XML Parse : XML : Python examples (example source code) Organized by topic

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



Parsing XML from a URL

import urllib 
usock = urllib.urlopen('http://www.yourdomain.org/yourxmlfile.xml') 
xmldoc = minidom.parse(usock)                              
usock.close()                                              
print xmldoc.toxml() 
           
       
Related examples in the same category
1.  Parsing XML from Local Files and Remote URLs Parsing XML from Local Files and Remote URLs
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.