-# Copyright 2004-2005 James Bunton <james@delx.cjb.net>
+# Copyright 2004-2006 James Bunton <james@delx.cjb.net>
# Licensed for distribution under the GPL version 2, check COPYING for details
-from tlib import xmlw
+from twisted.words.xish.domish import parseFile, Element
from debug import LogEvent, INFO, WARN
import os
import os.path
file = mangle(file)
hash = makeHash(file)
- document = xmlw.parseFile(self.name + X + hash + X + file + ".xml")
+ document = parseFile(self.name + X + hash + X + file + ".xml")
return document
except IOError:
pass
if(not document):
- document = xmlw.Element((None, "xdb"))
+ document = Element((None, "xdb"))
# Remove the existing node (if any)
for child in document.elements():