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

c# - Sort XmlNodeList with a specific Node value -

Android Java.Lang.RuntimeException : Unable to start activity Component Info -

actionscript 3 - Equivalent to moveReceived in ElectroServer 5 -