high level, fast XML package for Python?

Fredrik Lundh fredrik at pythonware.com
Wed Sep 20 07:32:49 EDT 2006


Martin v. Löwis wrote:

>> Is there a standard xml package for Python? Preferably high-level, fast
>> and that can parse in-file, not in-memory since I  have to deal with
>> potentially MBs of data. 
> 
> It seems that everybody is proposing libraries that use in-memory
> representations. There is a standard xml package for Python, it's
> called "xml" (and comes with the standard library). It contains a
> SAX interface, xml.sax, which can parse files incrementally.

note that the requirements included "high-level" and "fast"; sax is 
low-level, error-prone, and once you've finally fixed all the remaining 
bugs in your state machine, not that fast, really.

</F>




More information about the Python-list mailing list