Re: Generating header information using ElementTree

2006-11-27 Thread metaperl
And dont forget that you can use triple quotes to get rid of all the quote-escaping you are using: $ python >>> """ ... ... ho ... ... """ '\n\nho\n\n' >>> Craig wrote: > John Machin wrote: > > > Craig wrote: > > > > > Great. Got that sorted. The problem I have now is that some of the > > >

Re: Generating header information using ElementTree

2006-11-26 Thread Craig
John Machin wrote: > Craig wrote: > > > Great. Got that sorted. The problem I have now is that some of the > > XML data is not copied across to the file when I have the text > > information included. The number of characters that is lost is equal > > to the number of characters that is in the

Re: Generating header information using ElementTree

2006-11-26 Thread John Machin
Craig wrote: > Great. Got that sorted. The problem I have now is that some of the > XML data is not copied across to the file when I have the text > information included. The number of characters that is lost is equal > to the number of characters that is in the block of text I entered > befor

Re: Generating header information using ElementTree

2006-11-26 Thread Craig
Diez B. Roggisch wrote: > Craig schrieb: > > Fredrik Lundh wrote: > > > >> Craig wrote: > >> > >>> I'm only new to Python so please bear with me. I using ElementTree to > >>> generate an XML file that will reference a DTD and an XSL file. The > >>> header information I want at the start of the f

Re: Generating header information using ElementTree

2006-11-26 Thread John Machin
Craig wrote: > Fredrik Lundh wrote: > > > Craig wrote: > > > > > I'm only new to Python so please bear with me. I using ElementTree to > > > generate an XML file that will reference a DTD and an XSL file. The > > > header information I want at the start of the file is as follows: > > > > > > >

Re: Generating header information using ElementTree

2006-11-26 Thread Diez B. Roggisch
Craig schrieb: > Fredrik Lundh wrote: > >> Craig wrote: >> >>> I'm only new to Python so please bear with me. I using ElementTree to >>> generate an XML file that will reference a DTD and an XSL file. The >>> header information I want at the start of the file is as follows: >>> >>> >>> >>> >>

Re: Generating header information using ElementTree

2006-11-26 Thread Craig
Fredrik Lundh wrote: > Craig wrote: > > > I'm only new to Python so please bear with me. I using ElementTree to > > generate an XML file that will reference a DTD and an XSL file. The > > header information I want at the start of the file is as follows: > > > > > > > > > > > > How do you add

Re: Generating header information using ElementTree

2006-11-26 Thread Fredrik Lundh
Craig wrote: > I'm only new to Python so please bear with me. I using ElementTree to > generate an XML file that will reference a DTD and an XSL file. The > header information I want at the start of the file is as follows: > > > > > > How do you add this header information to the tree to t

Generating header information using ElementTree

2006-11-26 Thread Craig
Hi there, I'm only new to Python so please bear with me. I using ElementTree to generate an XML file that will reference a DTD and an XSL file. The header information I want at the start of the file is as follows: How do you add this header information to the tree as I can't find any docume