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
mattia wrote:
> I would like to click on an image in a web page that I retrieve using
> urllib in order to trigger an event.
> Here is the piece of code with the image that I want to click:
> onclick="return checkPhoneField(document.contactFrm, 'mobile');"
> alt="sms" src="images/button_sms.bmp"
On Wed, Sep 9, 2009 at 4:11 PM, mattia wrote:
> I would like to click on an image in a web page that I retrieve using
> urllib in order to trigger an event.
> Here is the piece of code with the image that I want to click:
> onclick="return checkPhoneField(document.contactFrm, 'mobile');"
> alt="sm
I would like to click on an image in a web page that I retrieve using
urllib in order to trigger an event.
Here is the piece of code with the image that I want to click:
I don't know how to do it (I'm trying using lxml, but any suggestion can
help).
Thanks,
Mattia
--
http://mail.python.org/
Uwe Schmitt wrote:
> I have to parse some text which pretends to be XML. lxml does not want
> to parse it, because it lacks a root element.
> I think that this situation is not unusual, so: is there a way to
> force lxml to parse it ?
>
> My work around is wrapping the text with "..." before
> fee
On Sep 27, 1:19 am, Uwe Schmitt <[EMAIL PROTECTED]>
wrote:
> I have to parse some text which pretends to be XML. lxml does not want
> to parse it, because it lacks a root element.
Another option is BeautifulSoup, which handles badly formed XML really
well:
http://www.crummy.com/software/Beautiful
On Sep 26, 11:19 am, Uwe Schmitt <[EMAIL PROTECTED]>
wrote:
> I have to parse some text which pretends to be XML. lxml does not want
> to parse it, because it lacks a root element.
> I think that this situation is not unusual, so: is there a way to
> force lxml to parse it ?
By "pretends to be XML
Hi,
I have to parse some text which pretends to be XML. lxml does not want
to parse it, because it lacks a root element.
I think that this situation is not unusual, so: is there a way to
force lxml to parse it ?
My work around is wrapping the text with "..." before
feeding lxmls parser.
Greeting
14 matches
Mail list logo