This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.snow
Recipients eric.snow
Date 2013-03-07.07:18:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362640725.41.0.836381435016.issue17372@psf.upfronthosting.co.za>
In-reply-to
Content
minidom already has something like this:

http://docs.python.org/3/library/xml.dom.minidom.html#xml.dom.minidom.Node.toprettyxml

This is something that appears to have almost made it in quite a while ago:

http://effbot.org/zone/element-lib.htm#prettyprint
http://svn.effbot.org/public/stuff/sandbox/elementlib/indent.py

A casual search found several similar implementations out there.  For instance:

http://infix.se/2007/02/06/gentlemen-indent-your-xml
History
Date User Action Args
2013-03-07 07:18:45eric.snowsetrecipients: + eric.snow
2013-03-07 07:18:45eric.snowsetmessageid: <1362640725.41.0.836381435016.issue17372@psf.upfronthosting.co.za>
2013-03-07 07:18:45eric.snowlinkissue17372 messages
2013-03-07 07:18:44eric.snowcreate