On Mon, Dec 02, 2019 at 08:58:11PM -0800, gerem...@gmail.com wrote:
> Date: Mon, 2 Dec 2019 20:58:11 -0800 (PST)
> From: gerem...@gmail.com
> To: python-list@python.org
> Subject: Re: lxml question -- creating an etree.Element attribute with ':'
> in the name
> User
Theanks a lot
--
https://mail.python.org/mailman/listinfo/python-list
Burak Arslan, 18.09.2013 21:35:
> On 09/18/13 21:59, Roy Smith wrote:
>> I can create an Element with a 'foo' attribute by doing:
>>
>> etree.Element('my_node_name', foo="spam")
>>
>> But, how do I handle something like:
>>
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";, since "xmlns:xsi
Roy Smith writes:
> But, how do I handle something like:
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";, since "xmlns:xsi"
> isn't a valid python identifier?
Read about "lxml"'s "namespace" support.
--
https://mail.python.org/mailman/listinfo/python-list
On 09/18/13 21:59, Roy Smith wrote:
> I can create an Element with a 'foo' attribute by doing:
>
> etree.Element('my_node_name', foo="spam")
>
> But, how do I handle something like:
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";, since "xmlns:xsi"
> isn't a valid python identifier?
>
>
On Wed, Sep 18, 2013 at 1:59 PM, Roy Smith wrote:
> I can create an Element with a 'foo' attribute by doing:
>
> etree.Element('my_node_name', foo="spam")
>
> But, how do I handle something like:
>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";, since "xmlns:xsi"
> isn't a valid python
I can create an Element with a 'foo' attribute by doing:
etree.Element('my_node_name', foo="spam")
But, how do I handle something like:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";, since "xmlns:xsi" isn't
a valid python identifier?
---
Roy Smith
r...@panix.com
--
https://mail.py