lxml question -- creating an etree.Element attribute with ':' in the name

dieter dieter at handshake.de
Thu Sep 19 02:10:42 EDT 2013


Roy Smith <roy at panix.com> writes:

> But, how do I handle something like:
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance", since "xmlns:xsi" isn't a valid python identifier?

Read about "lxml"'s "namespace" support.




More information about the Python-list mailing list