Re: Using file objects with elementtree

2008-05-16 Thread Stefan Behnel
castironpi wrote: > [...], and making up words. Blah? "Blah" is not made up. Try again. Stefan PS: this might be getting slightly off-topic... -- http://mail.python.org/mailman/listinfo/python-list

Re: Using file objects with elementtree

2008-05-15 Thread castironpi
On May 15, 1:14 pm, Stefan Behnel <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > What do we render? > > Sur. > > Stefan I'm pretty sure 'inputs' come from the real world. I guess the fear would be my hands aren't happy. Concerns include age fitity, a propriety, and making up words. B

Re: Using file objects with elementtree

2008-05-15 Thread Stefan Behnel
[EMAIL PROTECTED] wrote: > What do we render? Sur. Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Using file objects with elementtree

2008-05-14 Thread castironpi
On May 14, 5:41 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > dj schrieb: > > > Hello, > > > Rather then holding my XML document in memory before writing it to > > disk, I want to create a file object that elementtree will write each > > element to has it is created. Does any one know how to

Re: Using file objects with elementtree

2008-05-14 Thread Diez B. Roggisch
dj schrieb: Hello, Rather then holding my XML document in memory before writing it to disk, I want to create a file object that elementtree will write each element to has it is created. Does any one know how to do that ? Here is my code so, far: fd = open("page.xml", "w") tree.write( fd, encod

Re: Using file objects with elementtree

2008-05-14 Thread castironpi
On May 14, 3:09 pm, dj <[EMAIL PROTECTED]> wrote: > Hello, > > Rather then holding my XML document in memory before writing it to > disk, I want to create a file object that elementtree will write each > element to has it is created. Does any one know how to do that ? > > Here is my code so, far: >

Using file objects with elementtree

2008-05-14 Thread dj
Hello, Rather then holding my XML document in memory before writing it to disk, I want to create a file object that elementtree will write each element to has it is created. Does any one know how to do that ? Here is my code so, far: fd = open("page.xml", "w") tree.write( fd, encoding="iso-8859-