Re: no line breaks in xml file with elementTree

2010-10-31 Thread Diez B. Roggisch
hackingKK writes: > On Sunday 31 October 2010 01:58 PM, Lawrence D'Oliveiro wrote: >> In message, hackingKK >> wrote: >> >> >>> I want to know if there is a way to have the ElementTree module write to >>> an xml file with line breaks? >>> >> Why does it matter? The XML files you generat

Re: no line breaks in xml file with elementTree

2010-10-31 Thread Stefan Behnel
hackingKK, 31.10.2010 10:04: On Sunday 31 October 2010 01:58 PM, Lawrence D'Oliveiro wrote: hackingKK wrote: Further more, I just was curious why elementtree is not having the namespace facility? ElementTree handles namespaces just fine. So is there a function to generate tags with namespac

Re: no line breaks in xml file with elementTree

2010-10-31 Thread hackingKK
On Sunday 31 October 2010 01:58 PM, Lawrence D'Oliveiro wrote: In message, hackingKK wrote: I want to know if there is a way to have the ElementTree module write to an xml file with line breaks? Why does it matter? The XML files you generate are not for humans to look at, are they?

Re: no line breaks in xml file with elementTree

2010-10-31 Thread Lawrence D'Oliveiro
In message , hackingKK wrote: > I want to know if there is a way to have the ElementTree module write to > an xml file with line breaks? Why does it matter? The XML files you generate are not for humans to look at, are they? > Further more, I just was curious why elementtree is not having the

no line breaks in xml file with elementTree

2010-10-31 Thread hackingKK
Hello all. I want to know if there is a way to have the ElementTree module write to an xml file with line breaks? I find that when I use the write function from the module on a tree object, the resulting file has no line breaks. I don't want to use prittyprint because it is adding extra tabs t