Message266344
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) |
|
Date |
User |
Action |
Args |
2016-05-25 13:14:10 | enrico.scame | set | recipients:
+ enrico.scame, serhiy.storchaka |
2016-05-25 13:14:10 | enrico.scame | set | messageid: <1464182050.1.0.0341623192197.issue27120@psf.upfronthosting.co.za> |
2016-05-25 13:14:10 | enrico.scame | link | issue27120 messages |
2016-05-25 13:14:09 | enrico.scame | create | |
|