Re: XML DOM, but in chunks




On 31 okt 2007, at 21.24, 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?
Alternatively, are there other ways that would allow one to parse out
a record at a time and maintain some nice ways of accessing the
elements within the record?

Thanks,
Sean

-- http://mail.python.org/mailman/listinfo/python-list
You need a Python (or other language) implementation of the SAX API
----------------------------------
Skinheads are so tired of immigration, that they are going to move to a country that don't accept immigrants!
Tommy Nordgren
tommy.nordgren@xxxxxxxxx



.



Relevant Pages

  • Re: XML DOM, but in chunks
    ... would like to access each record, one-at-a-time, and I particularly ... to have ElementTree read only one record of the data at a time? ... Skinheads are so tired of immigration, that they are going to move to a country that don't accept immigrants! ...
    (comp.lang.python)
  • Re: XML DOM, but in chunks
    ... would like to access each record, one-at-a-time, and I particularly ... to have ElementTree read only one record of the data at a time? ... You need a Python implementation of the SAX API ... I think iterparse() is what he was looking for. ...
    (comp.lang.python)
  • XML DOM, but in chunks
    ... I have some very large XML files that are basically recordsets. ... would like to access each record, one-at-a-time, and I particularly ... to have ElementTree read only one record of the data at a time? ...
    (comp.lang.python)