Sequential XML parsing with xml.sax

Fredrik Lundh fredrik at
Tue Aug 23 21:25:20 CEST 2005

peter at wrote:

> The API reference isn't clear on whether parseString can only handle
> discrete bits of valid XML

the documentation says that "parse" expects an XML document,
and that "parseString" is the same thing, but parses from a buffer.

it's probably easier to pass a BZ2File instance to "parse", but if you
insist on doing incremental SAX parsing, the IncrementalParser class
might be what you need:


More information about the Python-list mailing list