Add flush function

I use your library to parse bidirectional streamed XML, and I need the partially accumulated text records at the boundary. So I added a function for it.