XML beautifier?
Jeffrey Chang
jefftc at leland.Stanford.EDU
Fri Sep 3 12:05:43 EDT 1999
If you're working on the DOM level, I have an insert_whitespace function
that will insert text nodes into a DOM tree so that toxml() will print out
prettily.
http://www.python.org/pipermail/xml-sig/1999-July/001367.html
Jeff
On Thu, 2 Sep 1999, Alexander Staubo wrote:
> I'm having a gas with the XML package and its DOM classes, but its toxml
> () mechanism outputs mainly flat XML -- no visual structure in the form
> of line shifts or indentation. Is there a Python module that such
> beautification reasonably hassle-free?
>
> --
> Alexander Staubo http://www.mop.no/~alex/
> "`Ford, you're turning into a penguin. Stop it.'"
> --Douglas Adams, _The Hitchhiker's Guide to the Galaxy_
>
>
More information about the Python-list
mailing list