Read response XML attributes in django rest framework

reetesh nigam nigamreetesh84 at gmail.com
Mon Dec 1 05:54:44 EST 2014


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



More information about the Python-list mailing list