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 rhettinger
Recipients alex.dzyoba, alex.henderson, eli.bendersky, eric.araujo, eric.snow, loewis, martin.panter, mcepl, rhettinger, santoso.wijaya, scoder, serhiy.storchaka, tshepang, vstinner, wolma
Date 2018-08-25.20:00:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535227203.67.0.56676864532.issue14465@psf.upfronthosting.co.za>
In-reply-to
Content
A few more thoughts for consideration:

* We already have a toprettyxml() tool in the minidom package.

* Since whitespace is significant in XML, prettifying changes the content and meaning, so it doesn't round-trip and should only be used for debugging purposes.

* Usually, I recommend using XML viewers such as the one built into the Chrome browser.  That provides indentation without changing meaning. It also lets you run searches and conveniently supports folding and unfolding elements.   I would rather someone use a viewer rather than something like toprettyxml().
History
Date User Action Args
2018-08-25 20:00:03rhettingersetrecipients: + rhettinger, loewis, scoder, vstinner, mcepl, eric.araujo, eli.bendersky, santoso.wijaya, tshepang, eric.snow, martin.panter, serhiy.storchaka, alex.henderson, wolma, alex.dzyoba
2018-08-25 20:00:03rhettingersetmessageid: <1535227203.67.0.56676864532.issue14465@psf.upfronthosting.co.za>
2018-08-25 20:00:03rhettingerlinkissue14465 messages
2018-08-25 20:00:03rhettingercreate