Author xtreak
Recipients eli.bendersky, rhettinger, scoder, serhiy.storchaka, xtreak
Date 2019-08-24.14:55:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Now that XML has pretty print option with issue14465 would it be handy to add a command line tool pretty printer similar to json.tool? This can be written as one-liner similar to json pretty printing but I think it's a good option and having a command line tool also helps in piping the output to other commands like filtering particular tags. I tried searching mailing list and couldn't find any discussions along these lines. There were some concerns around using external tools and  in . I thought to open this to gather feedback.

Branch :

python -m xml.tool /tmp/person.xml
  <person name="Kate">
  <person name="John">

# Get all breakfast tags

python -m xml.tool /tmp/person.xml | grep breakfast
Date User Action Args
2019-08-24 14:55:33xtreaksetrecipients: + xtreak, rhettinger, scoder, eli.bendersky, serhiy.storchaka
2019-08-24 14:55:33xtreaksetmessageid: <>
2019-08-24 14:55:33xtreaklinkissue37940 messages
2019-08-24 14:55:33xtreakcreate