<br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm happy to stand up as an example of someone who uses a custom Element<br>
class. My specific use case is loading the project Gutenberg database,<br>
which is a 210MB XML file. I created a custom Element class which I use<br>
for the top-level element (a custom element_factory passed to<br>
TreeBuilder distinguishes between the top-level element and all others).<br>
The custom Element class doesn't add children, so it keeps ElementTree<br>
from storing all of the elements its seen so far. On a system with 1 GB<br>
of RAM, there was no other way to get the file to load.<br>
<br>
So, I would be one of those people who would flood in the complaints. :)<br></blockquote></div><br>Andrew, could you elaborate on your use case? Are you using cElementTree to do the parsing, or ElementTree (the Python implementation). Can you show a short code sample?<br>
<br>Thanks in advance,<br>Eli<br><br>