Created
March 11, 2015 22:33
-
-
Save bahostetterlewis/2b49a9ca1aea5a1e8bb0 to your computer and use it in GitHub Desktop.
lxml python3 console pretty print
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print(etree.tostring(root, encoding="UTF-8", xml_declaration=True, pretty_print=True).decode('UTF-8')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment