assistunion/xml-stream — pull request #23 by dturing (2013-03-07 14:16:43+00:00)
Title: enable pause/resume

adds two functions, pause() and resume() on XmlStream that call it's expat counterparts.

we need to wait for a db query to return (with an id) before we can continue inserting data from child nodes (that reference said id). pausing/resuming xml parsing seemed the best option to handle the case, and expat supports it.

to call these methods on expat, we need to store the parser object (XmlStream._parser) within the parse() function.