formatted xml output from ElementTree inconsistency
Jarek Zgoda
jzgoda at gazeta.usun.pl
Thu Jun 23 15:38:15 EDT 2005
Matthew Thorley napisaĆ(a):
> The output I get shows xmla as nicely formatted text, with elements on
> different lines and everything all tabbed and pretty. Inverly, xmlb is
> one long string on one line.
>
> Is that because the some_file.xml is already nicely formatted? I thought
> that the formatting was ignored when creating new elements.
Why want you to read an XML document "by hand"? It's a "machine related"
data chunk.
Document formatting should be done by means of CSS and/or XSL stylesheet.
--
Jarek Zgoda
http://jpa.berlios.de/
More information about the Python-list
mailing list