allow disabling output buffering in xmlfile() and explicit flushing