Python script executable

2010-10-21 Thread kostia
Hi all, I'm working with glite grid middleware. This is the server-side program which allows to calculate exe or sh files using languages like python, c++ and so on. No matter, my question is following: I need to make my python script executable to be able to run it under the glite. I have found

Re: parse xml

2010-10-15 Thread kostia
Thank you all! -- http://mail.python.org/mailman/listinfo/python-list

parse xml

2010-10-15 Thread kostia
I have xml file: 5 I want to get the value of n (= 5) inside my python program, I'm doing this: import xml.dom.minidom from xml.dom.minidom import Node doc = xml.dom.minidom.parseString("boolean_width.xml") n = doc.getElementsByTagName("root")[0].firstChild.nodeValue.strip() pr