StatusNet is outputing XML without buffering.
It's OK when we want to make a dump, as the file may be huge, but the internal workflow is a bit tricky.
Let's say we want to write the rendering time in the HEAD of the document... How could we do this?
So I suggest to use DOM objects instead of writing directly into the output stream.