how do i handle xml in chunks using python? -


i loading xml memory using elementtree, not problem when files of reasonable size of files dealing on 500mb in size , means xml fails load memory. current code pretty standard follows:

    tree = et.parse(xmlloc)     root= tree.getroot()             element in root.iter(elementname):                 # work here 

is there way of doing above in chunks?


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -