def write_with_xml_declaration(self, file, encoding, xml_declaration):
        assert xml_declaration is True # Support our use case only
        file.write("<?xml version='1.0' encoding='utf-8'?>\n")
        p26_write(self, file, encoding=encoding)