django-rest-framework-xml
django-rest-framework-xml copied to clipboard
Update renderers.py
The proposed changes allow to create child classes that include a namespace or other root attributes, e.g.
class UrlXmlRenderer(XMLRenderer):
root_tag_name = 'urlset'
item_tag_name = 'url'
root_attributes = {'xmlns': 'http://www.sitemaps.org/schemas/sitemap/0.9'}