Read response XML attributes in django rest framework

Roy Smith roy at panix.com
Mon Dec 1 08:21:11 EST 2014


In article <1248a112-88fd-4346-a733-7716671b835e at googlegroups.com>,
 reetesh nigam <nigamreetesh84 at gmail.com> wrote:

> I need to read xml attributes coming in response data. I am using Django rest 
> framework.
> 
> requested XML :  <myTag><xyz verified="N" product="ABC" 
> startDate="02-02-2014"/></myTag>
> 
> Response I am getting: {'xyz': None}
> 
> I am using : 'DEFAULT_PARSER_CLASSES': ('rest_framework.parsers.XMLParser') 
> in my setting.py file

This seems like a question for the django-users mailing list.

https://docs.djangoproject.com/en/1.7/internals/mailing-lists



More information about the Python-list mailing list