Matt Funk, 21.02.2011 23:08:
On 2/21/2011 11:22 AM, Terry Reedy wrote:
On 2/21/2011 12:30 PM, Matt Funk wrote:
Hi,
I was wondering if someone had some advice:
I want to create a set of xml input files to my code that look as
follows:

Why?

mmmh. not sure how to answer this question exactly. I guess it's a
design decision. I am not saying that it is best one, but it seemed
suitable to me. I am certainly open to suggestions. But here are some
requirements:
1) My boss needs to be able to read the input and make sense out of it.
XML seems fairly self explanatory, at least when you choose suitable
names for the properties/tags etc ...
2) I want reproducability of a given run without changes to the code.
I.e. all the inputs need to be stored external to the code such that the
state of the run is captured from the input files entirely.

That sounds like ConfigParser actually suits your needs.

Stefan

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to