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
> > >
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
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
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
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:
> > >
> > >
>
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:
>>>
>>>
>>>
>>>
>>
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
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
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