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 -- https://mail.python.org/mailman/listinfo/python-list