Issue #1470548: Add test for fragment producing with XMLGenerator.
Issue #1470548: Add test for fragment producing with XMLGenerator.
Issue #15083: Convert ElementTree doctests to unittests.