Why is there no functional xml?

Peter Otten __peter__ at web.de
Wed Jan 24 03:42:27 EST 2018


Rustom Mody wrote:

>> To generalize that to handle arbitrarily nested lists and namedtuples a
>> bit more effort is needed, but I can't see where lxml.objectify could
>> make that much easier.
> 
> You really mean that??
> Well sure in the programming world and even more so in the python world
> “Flat is better than nested” is a maxim
> 
> But equally programmers need to satisfy requirements…
> 
> And right now I am seeing things like this
> -----------------------------------------------
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

Hm, what happens if you throw a dedicated library at the problem?
Google found zeep
 
http://docs.python-zeep.org/en/master/datastructures.html




More information about the Python-list mailing list