def render_to_response(self, context, **response_kwargs):
        response_kwargs['content_type'] = 'application/xml'
        return super(Sitemap, self).render_to_response(context, **response_kwargs)
In django 1.5+ we can replace this method with simply:
dataset/ETHPy150Open refreshoxford/django-cbv-inspector/cbv/views.py/Sitemap.render_to_response