Skip to content

Instantly share code, notes, and snippets.

@dhumanity
dhumanity / ppxml_python3.sh
Created December 12, 2022 15:41
pretty print XML on python3, originally to python2 from https://gist.github.com/rspivak/74a08170a2a04a344161
alias ppxml='python3 -c "import sys, io;from lxml import etree;print(etree.tostring(etree.parse(io.StringIO(sys.stdin.read()),etree.XMLParser(remove_blank_text = True)), pretty_print = True).decode(\"utf-8\"))"'