custom XML renderer

52 views
Skip to first unread message

Patrick Kranzlmueller

unread,
May 24, 2013, 3:35:27 AM5/24/13
to django-res...@googlegroups.com
I'm mainly dealing with the terms of nodes (e.g. root or list-items) and I plan to change these names to more declarative ones.
I'm having something like this in mind:

Has anyone implemented a custom XML renderer? If so, any hints on what's the best practice?
I want to avoid writing a different XML renderer for every model I'm using but I currently don't see an easy way to a) have an abstract renderer and b) achieve declarative nodes.

Maybe more declarative nodes are not even necessary for an API (and they just look good)?

Thx,
Patrick

Hassan Shamim

unread,
Apr 2, 2014, 11:07:21 AM4/2/14
to django-res...@googlegroups.com
Sorry for reviving a dead thread, but did you ever find a decent solution for this?  Or did you end up having to write a custom XML renderer for all your endpoints?

Patrick Kranzlmueller

unread,
Apr 7, 2014, 4:51:01 AM4/7/14
to django-res...@googlegroups.com
I simply gave up on this issue ... please let me know if you find a decent solution.

Thanks,
Patrick
Reply all
Reply to author
Forward
0 new messages