<br><br><div class="gmail_quote">On Fri, Dec 24, 2010 at 8:40 PM, Jim <span dir="ltr"><<a href="mailto:jim.hefferon@gmail.com">jim.hefferon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello, I wonder if someone knows about lxml.etree and namespaces?<br>
<br>
I want to build an ElementTree where some of the sub-elements have<br>
attributes that serialize this way.<br>
<br>
<comment xml:lang='de'>..</comment><br>
<br>
I've tried just comment_elet.set('xml:lang','de') and it didn't like<br>
that at all (although it takes comment_elet.set('auth:id','jones')<br>
just fine). I've also spelunked the docs and googled but have not hit<br>
on the right invocation. If someone knows, I'd be grateful.<br>
<br>
Jim<br>
<font color="#888888">--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</font></blockquote></div><br>You can check this <div><br></div><div><a href="http://codespeak.net/pipermail/lxml-dev/2006-February/000920.html">http://codespeak.net/pipermail/lxml-dev/2006-February/000920.html</a></div>
<div><br></div><div><br>-- <br>Nitin Pawar<br><br>
</div>