- self.schemaDom = minidom.parseString(r1.read())
- # XML begings with a '#document'. Just check to be safe.
- if self.schemaDom.nodeName == "#document":
- self.schemaDom = self.schemaDom.childNodes[0]
+ self.xmlDom = filedom
+ self.xmlDict = self.nodeDict()
+
+
+ #def _getSchema(self):
+ # '''If the schema doesn't exist at the NameSpace's URL, then use the
+ # local file.'''
+ # conn = httplib.HTTPConnection(self.NSURL)
+ # conn.request("GET", "/" + self.xsd)
+ # r1 = conn.getresponse()
+ # if r1.status != 200:
+ # logging.debug("http://%s/%s: file not found" %(self.NSURL,self.xsd))
+ # if os.path.exists(self.xsd):
+ # logging.debug("using local copy.")
+ # self.schemaDom = minidom.parse(self.xsd)
+ # else:
+ # self.schemaDom = minidom.parseString(r1.read())
+ # # XML begings with a '#document'. Just check to be safe.
+ # if self.schemaDom.nodeName == "#document":
+ # self.schemaDom = self.schemaDom.childNodes[0]