Parsing XML from a URL : DOM : XML PYTHON TUTORIALS


PYTHON TUTORIALS » XML » DOM »

 

Parsing XML from a URL


import urllib 
usock = urllib.urlopen('http://slashdot.org/slashdot.rdf')  
xmldoc = minidom.parse(usock)                            
usock.close()                                           
print xmldoc.toxml()



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo XML
» DOM