Guest User

Untitled

a guest
Dec 7th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. import xml.etree.ElementTree as ET
  2. import xml.dom.minidom as minidom
  3.  
  4.  
  5. def pp_xml(element):
  6. s = ET.tostring(element)
  7. print(minidom.parseString(s).toprettyxml())
Add Comment
Please, Sign In to add comment