XML DOM, but in chunks

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Wed Oct 31 16:43:21 EDT 2007


On Wed, 31 Oct 2007 20:24:43 +0000, Sean Davis wrote:

> I have some very large XML files that are basically recordsets.  I
> would like to access each record, one-at-a-time, and I particularly
> like the ElementTree library for accessing the data.  Is there a way
> to have ElementTree read only one record of the data at a time?

Have you tried `iterparse()`?

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list