Yes, I did mean '=' rather than ':'. I have been doing too much JSON lately...
Here is an example of the output from 'str(request.POST)': <QueryDict: {u'<?xml version': [u'"1.0" encoding="UTF-8"?>\r\n<order- state-change-notification xmlns="http://checkout.google.com/schema/2" serial-number="707751054951378-00005-1">\r\n <new-fulfillment-order- state>NEW</new-fulfillment-order-state>\r\n <new-financial-order- state>CHARGEABLE</new-financial-order-state>\r\n <previous- fulfillment-order-state>NEW</previous-fulfillment-order-state>\r\n <previous-financial-order-state>REVIEWING</previous-financial-order- state>\r\n <timestamp>2009-11-26T14:39:21.900Z</timestamp>\r\n <google-order-number>707751054951378</google-order-number>\r\n</order- state-change-notification>\r\n\r\n']}> Sorry about the lack of formatting but trying to format a mix of object notation and XML looks rather weird however you do it. 'request.POST.items()' will give you much the same nonsense. I need to get at POST before Django tries to interpret it. Thanks. On Nov 26, 4:05 pm, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Nov 26, 3:55 pm, Chris <chrisbrett...@googlemail.com> wrote: > > > Hi all, > > > Sorry for bothering you with something that is probably fairly > > straight forward but I cant seem to find the solution myself. > > > I am using Google Checkout on my site. It calls one of my pages after > > processing an order. It posts XML. Django seems to evaluate the XML > > into a QueryDict, with rather silly results. For example: > > > <tag attrib:"value">blah</tag> > > This isn't valid XML. Do you mean: > <tag attrib="value">blah</tag> > > > looks something like: > > > { '<tag attrib':['"value">blah</tag>']} > > > where '<tag attrib' is a key in a dictionary, the value of which is a > > list containing the rest of the XML. > > > As you can see, this is wildly not what I am after. I need to access > > the POST string directly without Django interpreting it as a > > dictionary. How do I go about doing this? I'm open to other > > suggestions but keep in mind I can't change the way in which the data > > is posted, as it comes from Google Checkout. > > > Thanks. > > Can you post some code showing how you are getting the data from the > POST and what you are doing with it? > -- > DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.