Issue #1470548: XMLGenerator now works with binary output streams.