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

rest - Spring boot: Request method 'PUT' not supported -

php - Magento - Deleted Base url key -

symfony - imagine_filter() not generating the correct url in LiipImagineBundle -