1.1 --- a/test.py Mon Oct 06 21:59:05 2003 +0000
1.2 +++ b/test.py Mon Oct 06 22:11:00 2003 +0000
1.3 @@ -1,11 +1,10 @@
1.4 #!/usr/bin/env python
1.5
1.6 import libxml2dom
1.7 -import libxml2
1.8 from xml.dom.ext import PrettyPrint
1.9 import sys
1.10
1.11 -doc = libxml2.parseFile(sys.argv[1])
1.12 +d = libxml2dom.parse(sys.argv[1])
1.13
1.14 #doc = libxml2.parseDoc("""<?xml version="1.0" encoding="iso-8859-15"?>
1.15 #<schema xmlns="http://www.boddie.org.uk/ns/xmltools/model"
1.16 @@ -15,7 +14,6 @@
1.17 #</schema>
1.18 #""")
1.19
1.20 -d = libxml2dom.Node(doc)
1.21 PrettyPrint(d)
1.22
1.23 # vim: tabstop=4 expandtab shiftwidth=4