Convert raw data to XML
gagsl-py at yahoo.com.ar
Tue Jan 30 05:54:58 CET 2007
En Mon, 29 Jan 2007 23:42:07 -0300, <elrondrules at gmail.com> escribió:
> For example the raw data is as follows
> <?xml version="1.0" ?><Blah><ABC><Id id="1"/><Description>SomeText </
> 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.
More information about the Python-list