Enrico added the comment: I have attached xmllib.py. This file is in python23\lib folder.
The strings in XML file are in cyrillic language. My code: import xmllib class Parser(xmllib.XMLParser): # a simple styling engine def __init__(self): xmllib.XMLParser.__init__(self) self.cursupervisore = None self.curdata = '' self.elements = {'Superv':(self.starttag_superv, self.endtag_superv) ........ } def load(self, file): while 1: s = file.readline() if not s: break self.feed(s) self.close() def read_plant_tree(filexml): c = Parser() c.load(filexml) ---------- Added file: http://bugs.python.org/file42991/xmllib.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27120> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com