2004-11-29 | paulb | raw annotate files changeset graph | [project @ 2004-11-29 20:57:16 by paulb] Fixed the document title. |
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 9 #doc = libxml2.parseDoc("""<?xml version="1.0" encoding="iso-8859-15"?> 10 #<schema xmlns="http://www.boddie.org.uk/ns/xmltools/model" 11 # xmlns:database="http://www.boddie.org.uk/ns/xmltools/database"> 12 # 13 # <def-element name="cage" database:table="CAGE"/> 14 #</schema> 15 #""") 16 17 PrettyPrint(d) 18 19 # vim: tabstop=4 expandtab shiftwidth=4