Danny Yoo, 07.05.2014 22:39:
> If you don't want to deal with a event-driven approach that SAX
> emphasizes, you may still be able to do this problem with an XML-Pull
> parser.  You mention that your input is hundreds of megabytes long, in
> which case you probably really do need to be careful about memory
> consumption.  See:
> 
>     https://wiki.python.org/moin/PullDom

Since the OP mentioned that the file is quite large (800 MB), not only
memory consumption should matter but also processing time. If that is the
case, PullDOM isn't something to recommend since it's MiniDOM based, which
makes it quite slow overall.

Stefan


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to