[XML-SIG] minidom.Element.writexml() change

Martin v. Loewis martin@v.loewis.de
15 Nov 2002 08:13:16 +0100


Joel Lawhead <jlawhead@bellsouth.net> writes:

> The standard minidom.Element.writexml() produces output like this:
> 
> <?xml version="1.0" ?>
> <TileMeta>
> 	<Id>
> 		<Theme>

I can't reproduce this:

>>> from xml.dom.minidom import parseString
>>> d = parseString("<foo>bar</foo>")
>>> print d.toxml()
<?xml version="1.0" ?>
<foo>bar</foo>

That doesn't add any newlines at all.

> The forums on the xml-sig SoureForge page seem to be broken so I'm
> posting the method here:

Please use the patches tracker for that.

Regards,
Martin