      """
      media_type = 'application/xml'
  
      def render(self, obj=None, media_type=None):
          if obj is None:
              return ''
          return dict2xml(obj)
  
  
  class TemplateRenderer(BaseRenderer):
 
</s> remove         context = RequestContext(self.request, obj)
        return self.template.render(context)
 </s> add         template = loader.get_template(self.template)
        context = RequestContext(self.view.request, {'object': obj})
        return template.render(context) </s> remove     def render(self, obj=None, content_type=None):
 </s> add     def render(self, obj=None, media_type=None): </s> remove     def render(self, obj=None, content_type=None):
 </s> add     def render(self, obj=None, media_type=None):
        """
        Renders *obj* into serialized XML.
        """
      """
      media_type = 'application/xml'
  
      def render(self, obj=None, media_type=None):
        """
        Renders *obj* into serialized XML.
        """
          if obj is None:
              return ''
          return dict2xml(obj)
  
  
  class TemplateRenderer(BaseRenderer):
keep keep keep add keep keep keep keep keep keep
 Renderers can now cope with parameterised args.  ResponseMixin gets cleaned up & added Renderer.can_handle_response(), mirroring Parsers.can_handle_request() 
djangorestframework/renderers.py