Re: Problems with ElementTree and ProcessingInstruction

2007-01-28 Thread Kent Tenney
On Jan 28, 7:46 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Sunday 28/1/2007 11:28, Kent Tenney wrote: > > >I want to generate the following file; > > > > > > >stuff > > >How should I be doing this?open("filename","w").write(' >encoding="utf-8"?>\n' > '\n' > 'stuff\n'

Re: Problems with ElementTree and ProcessingInstruction

2007-01-28 Thread Gabriel Genellina
At Sunday 28/1/2007 11:28, Kent Tenney wrote: I want to generate the following file; stuff How should I be doing this? open("filename","w").write('\n' '\n' 'stuff\n') :) As far as I can tell, ElementTree() requires everything to be inside the root element (leo_file) J

Problems with ElementTree and ProcessingInstruction

2007-01-28 Thread Kent Tenney
Howdy, I want to generate the following file; stuff How should I be doing this? As far as I can tell, ElementTree() requires everything to be inside the root element (leo_file) Thanks, Kent -- http://mail.python.org/mailman/listinfo/python-list