[XML-SIG] DOM toxml() method

Jeffrey Chang jefftc@leland.Stanford.EDU
Fri, 14 May 1999 17:07:57 -0700 (PDT)

How are people generating nicely-formatted XML from DOM trees?

Has anyone written a function that will take a DOM tree and will insert
whitespace, where necessary, to generate a pretty XML document?  It would
be almost the reverse of utils.strip_whitespace.