Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib2
- from xml.dom import minidom
- p = urllib2.urlopen("bleeeeeeep.xml")
- x = p.read()
- doc_ob = minidom.parseString(x)
- print(doc_ob.toprettyxml())
- len(doc_ob.getElementsByTagName('item'))
Add Comment
Please, Sign In to add comment