Author enrico.scame
Recipients enrico.scame, serhiy.storchaka
Date 2016-05-25.13:14:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1464182050.1.0.0341623192197.issue27120@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2016-05-25 13:14:10enrico.scamesetrecipients: + enrico.scame, serhiy.storchaka
2016-05-25 13:14:10enrico.scamesetmessageid: <1464182050.1.0.0341623192197.issue27120@psf.upfronthosting.co.za>
2016-05-25 13:14:10enrico.scamelinkissue27120 messages
2016-05-25 13:14:09enrico.scamecreate