[lxml-dev] Default prefixes for common XML namespaces *sometimes* doesn't work
Christian Zagrodnick
cz at gocept.com
Thu Feb 21 11:56:09 CET 2008
Hi,
in 2.0alpha5 the feature was added that there are defaults for some
namespace prefixes (like xsi, xsd, py).
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?
In the case above I used an ObjectPath with setattr.
Regards,
--
Christian Zagrodnick
gocept gmbh & co. kg · forsterstrasse 29 · 06112 halle/saale
www.gocept.com · fon. +49 345 12298894 · fax. +49 345 12298891
More information about the lxml-dev
mailing list