Message161762
I don't think this is an enhancement to ET, because ET was not designed to be a streaming parser, which is what is required here. ET was designed to read a whole valid XML document. There is 'iterparse', as Antoine mentioned, but it is designed to "track changes to the tree while it is being built" - mostly to save memory.
You have streaming XML parsers in Python - for example xml.sax. You can also relatively easily use xml.sax to find the end of your document and then parse the buffer with ET.
I don't see how a comparison with Parsec (a parser generator/DSL library) makes sense. There are tons of such libraries for Python - just pick one. |
|
Date |
User |
Action |
Args |
2012-05-28 09:41:30 | eli.bendersky | set | recipients:
+ eli.bendersky, rhettinger, pitrou, ezio.melotti, eric.araujo, r.david.murray, Frederick.Ross |
2012-05-28 09:41:30 | eli.bendersky | set | messageid: <1338198090.94.0.592711265564.issue14852@psf.upfronthosting.co.za> |
2012-05-28 09:41:30 | eli.bendersky | link | issue14852 messages |
2012-05-28 09:41:29 | eli.bendersky | create | |
|