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


Groups > comp.lang.python > #81752

Re: Read response XML attributes in django rest framework

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!ottix-news.ottix.net!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!roy
From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: Read response XML attributes in django rest framework
Date Mon, 01 Dec 2014 08:21:11 -0500
Organization PANIX Public Access Internet and UNIX, NYC
Lines 17
Message-ID <roy-A0CEC2.08204001122014@news.panix.com> (permalink)
References <1248a112-88fd-4346-a733-7716671b835e@googlegroups.com>
NNTP-Posting-Host localhost
X-Trace reader1.panix.com 1417440071 13110 127.0.0.1 (1 Dec 2014 13:21:11 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Mon, 1 Dec 2014 13:21:11 +0000 (UTC)
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
Xref csiph.com comp.lang.python:81752

Show key headers only | View raw


In article <1248a112-88fd-4346-a733-7716671b835e@googlegroups.com>,
 reetesh nigam <nigamreetesh84@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

Back to comp.lang.python | Previous | Next — Previous 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