Pretty printing XML in Python Asked 07 September, 2021 Viewed 1.4K times python xml pretty-print 45 Votes 27 Answers What is the best way (or are the various ways) to pretty print XML in Python? python xml pretty-print Your reply on this question: Add Reply Cancel 27 Answer Order by Voted Recent Oldest Submit an answer Embed images in Question