[Soap-Python] Returning an extensible array of key, value pairs from a SOAP service

Michael Wood esiotrot at gmail.com
Thu Dec 2 12:38:47 CET 2010


Hi burak

On 2 December 2010 13:12,  <burak.arslan at arskom.com.tr> wrote:
[...]
> http://codespeak.net/lxml/objectify.html#python-data-types
>
>>>> from lxml import objectify
>>>> root = objectify.fromstring("<root><a>test</a><b>5</b></root>")
>>>> root.a
> 'test'
>>>> root.a.pyval
> 'test'
>>>> root.b
> 5
>>>> root.b.text
> '5'
>>>> root.b.pyval
> 5
>
> look at doing it with a schema if you want to avoid guesswork.
>
> http://codespeak.net/lxml/objectify.html#asserting-a-schema

Interesting.  But the client is C++, so not sure I can use that :)

Thanks.

-- 
Michael Wood <esiotrot at gmail.com>



More information about the Soap mailing list