From d93465aa52f5ce6d5476508777619a55f9a28c08 Mon Sep 17 00:00:00 2001 From: Joshua Boverhof Date: Thu, 17 Jul 2003 22:23:20 +0000 Subject: [PATCH] ---------------------------------------------------------------------- Modified Files: XMLSchema.py -- fixed a couple bad variable references. --- XMLSchema.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/XMLSchema.py b/XMLSchema.py index 7d737e5..52d58f4 100755 --- a/XMLSchema.py +++ b/XMLSchema.py @@ -201,13 +201,13 @@ class DOMAdapter(DOMAdapterInterface): def loadDocument(self, file): self.__node = DOM.loadDocument(file) - if hasattr(node, 'documentElement'): + if hasattr(self.__node, 'documentElement'): self.__node = node.documentElement def loadFromURL(self, url): self.__node = DOM.loadFromURL(url) - if hasattr(node, 'documentElement'): - self.__node = node.documentElement + if hasattr(self.__node, 'documentElement'): + self.__node = self.__node.documentElement class XMLBase: