Quantcast
Channel: python xml iterating over elements takes a lot of memory - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Fredrik Håård for python xml iterating over elements takes a lot of...

etree is going to consume a lot of memory (yes, even with iterparse()), and sax is really clunky. However, pulldom to the rescue!from xml.dom import pulldomdoc = pulldom.parse('large.xml')for event,...

View Article



python xml iterating over elements takes a lot of memory

I have some very big XML files (around ~100-150 MB each). One element in my XML is M (for member), which is a child of HH (household) - i.e. - each household contains one or more members. What I need...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>