lxml etree question

Nitin Pawar nitinpawar432 at gmail.com
Fri Dec 24 10:18:52 EST 2010


On Fri, Dec 24, 2010 at 8:40 PM, Jim <jim.hefferon at gmail.com> wrote:

> Hello,  I wonder if someone knows about lxml.etree and namespaces?
>
> I want to build an ElementTree where some of the sub-elements have
> attributes that serialize this way.
>
>  <comment xml:lang='de'>..</comment>
>
> I've tried just comment_elet.set('xml:lang','de') and it didn't like
> that at all (although it takes comment_elet.set('auth:id','jones')
> just fine).  I've also spelunked the docs and googled but have not hit
> on the right invocation.  If someone knows, I'd be grateful.
>
> Jim
> --
> http://mail.python.org/mailman/listinfo/python-list
>

You can check this

http://codespeak.net/pipermail/lxml-dev/2006-February/000920.html


-- 
Nitin Pawar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20101224/4e0b5444/attachment-0001.html>


More information about the Python-list mailing list