[lxml-dev] Default prefixes for common XML namespaces *sometimes* doesn't work

Stefan Behnel stefan_ml at behnel.de
Fri Feb 22 07:58:17 CET 2008


Hi,

Christian Zagrodnick wrote:
> in 2.0alpha5 the feature was added that there are defaults for some 
> namespace prefixes (like xsi, xsd, py).

-py here.


> Problem is, I sometimes still get things like
> 
>    <attribute xmlns:ns0="http://codespeak.net/lxml/objectify/pytype" 
> ns0:pytype="str">bla</attribute>
> 
> And I don't know why. What are the conditions when LXML uses (in this 
> case) the py: prefix and when not? Or is it a bug?

Just wasn't in the dict of default prefixes. I added it.

Stefan



More information about the lxml-dev mailing list