2003-10-06 | paulb | raw annotate files changeset graph | [project @ 2003-10-06 22:11:00 by paulb] Changed text node creation to use libxml2 utility functions, eliminating the TemporaryText class. Updated the test program to use a utility function for parsing. |
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