Parsing XML from a URL : XML Parse « XML « Python






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.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 StringsParsing XML from Strings
6.Parsing XML: Loading an XML Document