Issue #1470548: Do not buffer XMLGenerator output.
Add test for fragment producing with XMLGenerator.