[Tutor] Trying to parse a HUGE(1gb) xml file in python
Brett Ritter
swiftone at swiftone.org
Tue Dec 21 01:37:34 CET 2010
On Mon, Dec 20, 2010 at 5:32 PM, Steven D'Aprano <steve at pearwood.info> wrote:
>> XML is like violence: if it isn't working, try more.
>
> I love it -- may I quote you?
I can't claim credit for it, I saw originally saw it on some sigs on
Slashdot a few years ago. It certainly matches the majority of XML
usage I've encountered.
As to the original post: Yes, as others have suggested you're going to
want an event-based parser along the lines of SAX. Sadly (for you)
this means a mental shift in how you address your code, but it's not
terrible - just different.
--
Brett Ritter / SwiftOne
swiftone at swiftone.org
More information about the Tutor
mailing list