Re: Trying to get cleaner XML output from a text file

2009-05-29 Thread Gabriel Genellina
En Fri, 29 May 2009 14:09:10 -0300, iainemsley escribió: I'm using Python2.5 to try and convert some text files into XML using xml.minidom. I'm currently doing some plays which have a structure like Scene 1 Act 1 blah blah Act2 blah blah Scene 2 Act 1 and so on. (I think you get the hierarc

Trying to get cleaner XML output from a text file

2009-05-29 Thread iainemsley
I'm using Python2.5 to try and convert some text files into XML using xml.minidom. I'm currently doing some plays which have a structure like Scene 1 Act 1 blah blah Act2 blah blah Scene 2 Act 1 and so on. I'm trying to turn it into 1 1 2 (or ideally bit I can always come back t