feeding SAX

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Oct 16 13:37:02 CEST 2001

mallum <breakfast at 10.am> writes:

> 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 ?

Some SAX readers implement the IncrementalParser interface,
expatreader among them. You call .feed() as many times as you want,
and .close() when you are done (the parser may still buffer some input
until the final .close() call).


More information about the Python-list mailing list