Noufal, I have nothing more to say than this(as i see some tangential replies which i am not interested in substantiating - for eg, i never suggested to use a regexp based parser - a regexp based xml parser is different from using 'a' regexp on a string!!!!!) :
Read my replies properly. Read my assumptions properly w.r.t the xml structure and the requested value in the xml. Read the link that you have pasted again. If possible, read the comments in the link shared(from esr) again. Once done, think twice and tell me which is better. If you vouch for xml parsing in the case when all that you need from the string is a simple numeric value(not a string), then good luck; unlike esr i will not use adjectives; but i would not use your code either. Thanks. -V _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers