def __init__(self): # --- Creating support objects self.err = xmlapp.ErrorHandler(self) self.ent = xmlapp.EntityHandler(self.err) self.isf = xmlapp.InputSourceFactory() self.pubres = xmlapp.PubIdResolver() self.data_charset = "iso-8859-1" self.charset_converter = charconv.id_conv # the identity transform self.err_lang = "en" self.errors = errors.get_error_list(self.err_lang) self.reset()
def __init__(self): # --- Creating support objects self.err = xmlapp.ErrorHandler(self) self.ent = xmlapp.EntityHandler(self.err) self.isf = xmlapp.InputSourceFactory() self.pubres = xmlapp.PubIdResolver() self.data_charset = None # the default charset in XML is UTF-8 self.input_encoding = None # not determined, yet self.charset_converter = None self.err_lang = "en" self.errors = errors.get_error_list(self.err_lang) self.reset()