32 from _xmlplus.parsers.xmlproc
import xmlval, xmlapp, errors
45 self.parser.set_error_handler(self.
errors)
46 self.parser.parse_resource(sysid)
49 return self.errors.errors
54 xmlapp.ErrorHandler.__init__(self, locator)
72 self.errors.append((self.locator.get_current_sysid(),
73 self.locator.get_line(),
74 self.locator.get_column(),
def __init__(self, locator, warnings=1)
def parse(self, fileName)
for (sysid, line, col, msg) in self.errors.errors: print sysid, line, col, msg
def __add_error(self, msg)