Re: lxml etree question

2010-12-26 Thread Stefan Behnel
Jim, 26.12.2010 00:32: On Dec 25, 5:33 am, Stefan Behnel wrote: lxml knows about this special case, so you can write {http://www.w3.org/XML/1998/namespace}lang and lxml will take care of using the right prefix. Stefan, thank you for the software, which has helped me a great deal. I

Re: lxml etree question

2010-12-26 Thread Carl Banks
On Dec 24, 10:17 am, Adam Tauno Williams wrote: > On Fri, 2010-12-24 at 20:48 +0530, Nitin Pawar wrote: > > On Fri, Dec 24, 2010 at 8:40 PM, Jim wrote: > >         Hello,  I wonder if someone knows about lxml.etree and > >         namespaces? > > Yes, and don't. He's using lxml.etree (which is a

Re: lxml etree question

2010-12-25 Thread Jim
On Dec 25, 5:33 am, Stefan Behnel wrote: > lxml knows about this special case, so you can write > >         {http://www.w3.org/XML/1998/namespace}lang > > and lxml will take care of using the right prefix. Stefan, thank you for the software, which has helped me a great deal. I tried that exact t

Re: lxml etree question

2010-12-25 Thread Stefan Behnel
Jim, 24.12.2010 16:10: 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. .. I've tried just comment_elet.set('xml:lang','de') and it didn't like that at all (although it t

Re: lxml etree question

2010-12-24 Thread Adam Tauno Williams
On Fri, 2010-12-24 at 20:48 +0530, Nitin Pawar wrote: > On Fri, Dec 24, 2010 at 8:40 PM, Jim wrote: > Hello, I wonder if someone knows about lxml.etree and > namespaces? Yes, and don't. > I want to build an ElementTree where some of the sub-elements have > attributes that serial

Re: lxml etree question

2010-12-24 Thread Nitin Pawar
On Fri, Dec 24, 2010 at 8:40 PM, Jim 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. > > .. > > I've tried just comment_elet.set('xml:lang','de') and it didn't

lxml etree question

2010-12-24 Thread Jim
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. .. I've tried just comment_elet.set('xml:lang','de') and it didn't like that at all (although it takes comment_elet.set('aut