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


Groups > comp.lang.python > #43771

Re: Parsing soap result

From Christian Heimes <christian@python.org>
Subject Re: Parsing soap result
Date 2013-04-17 20:05 +0200
References <mailman.723.1366206668.3114.python-list@python.org> <28fde565-f8c0-4995-b5a1-2ac2509712dc@l5g2000yqe.googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.730.1366221958.3114.python-list@python.org> (permalink)

Show all headers | View raw


Am 17.04.2013 19:55, schrieb darnold:
> On Apr 17, 8:50 am, Ombongi Moraa Fe <moraa.lovetak...@gmail.com>
> wrote:
> 
>> how do I use xml.etree.ElementTree to print the parameters address and
>> deliveryStatus? Or is there a better python method?
>>
> 
> 
> I'm sure there are prettier ways to do this, but you can use XPath
> syntax to find all of your ns1:result nodes and loop through them:

You want all {http://www.csapi.org/schema/parlayx/sms/send/v2_2/
local}result tags. The prefix isn't fixed.

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


Thread

Parsing soap result Ombongi Moraa Fe <moraa.lovetakes2@gmail.com> - 2013-04-17 16:50 +0300
  Re: Parsing soap result darnold <darnold992000@yahoo.com> - 2013-04-17 10:55 -0700
    Re: Parsing soap result Christian Heimes <christian@python.org> - 2013-04-17 20:05 +0200
      Re: Parsing soap result darnold <darnold992000@yahoo.com> - 2013-04-17 12:14 -0700

csiph-web