Message266344
| 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: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 |
|