I have a very large XML file with 40,000 tag elements.
When i am using element tree to parse this file it’s giving errors due to memory.
So is there any module in python that can read the xml file in data chunks without loading the entire xml into memory?And How i can implement that module?
I have a very large XML file with 40,000 tag elements. When i am
Share
Probably the best library for working with XML in Python is
lxml, in this case you should be interested initerparse/iterwalk.