[Tutor] xml parsing from xml
Stefan Behnel
stefan_ml at behnel.de
Sat May 10 10:57:18 CEST 2014
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
More information about the Tutor
mailing list