"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Stuart McGraw wrote: > > Now I find i need to get and save the input file line > > number of each node. Googling turned up a way > > to do it by subclassing FancyTreeBuilder, > > (http://groups.google.com/group/comp.lang.python/msg/45f5313409553b4b?hl=en&) > > but that tries to read everything at once. > > > > Is there a way to do something similiar with iterparse()? > > something like this could work: > ...snip...
Indeed it does. Many thanks! -- http://mail.python.org/mailman/listinfo/python-list