I have a large xml file (about 84MB) which is in this form:
... .... ...
Try with lxml which is more easy to use.
#!/usr/bin/env python from lxml import etree with open("myfile.xml") as fp: tree = etree.parse(fp) root = tree.getroot() print root.tag for book in root: print book.text