[XML-SIG] Pretty-printing DOM trees

Adrian Eyre a.eyre@optichrome.com
Fri, 22 Jan 1999 13:59:27 -0000


--MimeMultipartBoundary
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

> from xml.dom import utils, core
Am I using the right XML library here, as mine does not appear to have a
file
called utils.py in the xml.dom directory.
I'm using: http://www.python.org/sigs/xml-sig/files/xml-0.5.tgz

> def format(node, indent=4):
>     """Pretty-print a DOM tree"""
I also find passing in an xml.dom.core.Document instance causes the routine
to
fall over.

What am I doing wrong?

+------------------------------------------+
| BFN: Adrian Eyre <a.eyre@optichrome.com> |
+------------------------------------------+

--MimeMultipartBoundary--