Here's a module to process the XML dumps with a SAX parser

It takes a long time, but very little memory. Could probably be optimized further.