Sequential XML parsing with xml.sax
Fredrik Lundh
fredrik at pythonware.com
Tue Aug 23 15:25:20 EDT 2005
peter at hardy.dropbear.id.au 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:
http://www.python.org/doc/current/lib/module-xml.sax.xmlreader.html
http://www.python.org/doc/current/lib/incremental-parser-objects.html
</F>
More information about the Python-list
mailing list