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
Post a Comment