jpadilla / django-rest-framework-xml

XML support for Django REST Framework

Home Page:http://jpadilla.github.io/django-rest-framework-xml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a TemplateXMLRender

Otoru opened this issue · comments

There are cases when there is a need for an API that returns a specific XML format. FreeSwitch integrations via XML-CURL for example.

For such purposes, it would be interesting to have XML templates that could be dynamically rendered, similar to TemplateHTMLRender.

If the project members are in agreement, I am willing to work on this new functionality.

I hacked my way into a copied version of this project to achieve that, but a supported standard way would be nice...
What I made was a DictRenderer that would convert the dict keys to XML tags, and the values would be the content... I can make a fork with this work if you want to see it