[#3513] Streaming version of formatCSV/formatXML