1 #!/usr/bin/env python 2 3 import libxml2dom 4 from xml.dom.ext import PrettyPrint 5 import sys 6 7 d = libxml2dom.parse(sys.argv[1]) 8 PrettyPrint(d) 9 10 # vim: tabstop=4 expandtab shiftwidth=4