feeding SAX

Paul Prescod paul at ActiveState.com
Tue Oct 16 12:17:28 CEST 2001

mallum wrote:
> hi all;
> Expat allows me to incrementally parse an XML document by 'feeding' it
> the document in chunks rather than in one whole go. Is this possible
> with SAX ? or do you have to give its parse function the entire
> document ?

Look in Lib\xml\sax\expatreader.py. It exposes an incremental interface
based on a SAX interface called IncrementalParser. It has a feed()

 Paul Prescod

More information about the Python-list mailing list