Skip to content

Instantly share code, notes, and snippets.

@bahostetterlewis
Created March 11, 2015 22:33
Show Gist options
  • Save bahostetterlewis/2b49a9ca1aea5a1e8bb0 to your computer and use it in GitHub Desktop.
Save bahostetterlewis/2b49a9ca1aea5a1e8bb0 to your computer and use it in GitHub Desktop.
lxml python3 console pretty print
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