Pedro Andres Aranda Gutierrez added the comment:
Thanks a lot again :-)
We have a saying here: you'll never go to sleep without having learnt
something new :-)
On Tue, Jan 17, 2012 at 4:11 PM, patrick vrijlandt
wrote:
>
> patrick vrijlandt added the comment:
>
> Hi,
>
&g
Pedro Andres Aranda Gutierrez added the comment:
Touché :-)
I was just frustrated because my XMLs never have tail or text as
attributes and I wanted to have more compact code...
On Mon, Jan 16, 2012 at 12:14 PM, patrick vrijlandt
wrote:
>
> patrick vrijlandt added the comment:
>
New submission from Pedro Andres Aranda Gutierrez :
I have extended the xml.etree.ElementTree.Element class and pass the text
attribute in the arguments. This creates much more compact code:
import xml.etree.ElementTree as xml
class Element(xml.Element):
def __init__(self
New submission from Pedro Andres Aranda Gutierrez :
When creating ElementTree objects that hold SVG drawings, I need a CDATA object
similar to the ProcessingInstruction object. There was a circumvention of the
problem for Python 2.6:
http://stackoverflow.com/questions/174890/how-to-output