Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81746

Read response XML attributes in django rest framework

Newsgroups comp.lang.python
Date 2014-12-01 02:54 -0800
Message-ID <1248a112-88fd-4346-a733-7716671b835e@googlegroups.com> (permalink)
Subject Read response XML attributes in django rest framework
From reetesh nigam <nigamreetesh84@gmail.com>

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Read response XML attributes in django rest framework reetesh nigam <nigamreetesh84@gmail.com> - 2014-12-01 02:54 -0800
  Re: Read response XML attributes in django rest framework Roy Smith <roy@panix.com> - 2014-12-01 08:21 -0500

csiph-web