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


Groups > comp.lang.python > #81746 > unrolled thread

Read response XML attributes in django rest framework

Started byreetesh nigam <nigamreetesh84@gmail.com>
First post2014-12-01 02:54 -0800
Last post2014-12-01 08:21 -0500
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  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

#81746 — Read response XML attributes in django rest framework

Fromreetesh nigam <nigamreetesh84@gmail.com>
Date2014-12-01 02:54 -0800
SubjectRead response XML attributes in django rest framework
Message-ID<1248a112-88fd-4346-a733-7716671b835e@googlegroups.com>
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

[toc] | [next] | [standalone]


#81752

FromRoy Smith <roy@panix.com>
Date2014-12-01 08:21 -0500
Message-ID<roy-A0CEC2.08204001122014@news.panix.com>
In reply to#81746
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web