--- nfo/projects/netfraggle/bin/fraggleParserXML.py 2004/08/25 21:41:48 1.3 +++ nfo/projects/netfraggle/bin/fraggleParserXML.py 2004/08/29 22:52:40 1.5 @@ -3,6 +3,7 @@ import sys import fraggleError +#from fraggleError import * from xml.dom.ext.reader import Sax2 from xml.marshal import * @@ -23,7 +24,7 @@ try: dom = self.reader.fromStream(input) except: - fraggleError.errorFileNotFound() + fraggleError.errorXMLStreamNotValid() return dom def printXML(self,inputDom,outputLocation): @@ -31,7 +32,7 @@ file = open(outputLocation,"w") self.reader.PrettyPrint(inputDom,file) except: - fraggleError.errorFileNotFound() + fraggleError.errorFileNotFound(outputLocation) def marshalXML(self,values,outputLocation): try: @@ -39,7 +40,7 @@ # self.marshall.dump(values,file) generic.dump(values,file) except: - fraggleError.errorFileNotFound() + fraggleError.errorFileNotFound(outputLocation) #print generic.dumps(values) @@ -48,6 +49,7 @@ try: file = open(inputLocation,"r") except: - fraggleError.errorFileNotFound() + return + #fraggleError.errorFileNotFound(inputLocation) return generic.load(file) \ No newline at end of file