En Mon, 29 Jan 2007 23:42:07 -0300, <[EMAIL PROTECTED]> escribió: > For example the raw data is as follows > > <?xml version="1.0" ?><Blah><ABC><Id id="1"/><Description>SomeText </ > Description><Result>PassorFail</Result></ABC></Blah> > > without spaces or new lines. I need this to be written into an XML > file as > [same content but nicely indented]
Is the file supposed to be processed by humans? If not, just write it as you receive it. Spaces and newlines and indentation are mostly irrelevant on an xml file. -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list