Re: [Tutor] xml question

2010-07-27 Thread Albert-Jan Roskam
ever done for us? ~~ --- On Tue, 7/27/10, Mac Ryan wrote: From: Mac Ryan Subject: Re: [Tutor] xml question To: tutor@python.org Date: Tuesday, July 27, 2010, 11:46 AM On Mon, 2010-07-26 at 12:09 -0700, Albert-Jan Roskam wro

Re: [Tutor] xml question

2010-07-27 Thread Andreas Röhler
Am 27.07.2010 02:29, schrieb Steven D'Aprano: On Tue, 27 Jul 2010 05:09:09 am Albert-Jan Roskam wrote: Hi, I am making a data processing program that will use a configuration file. The file should contain information about: (1) source files used, (2) (intermediate) output files, (3) used pa

Re: [Tutor] xml question

2010-07-27 Thread Mac Ryan
On Mon, 2010-07-26 at 12:09 -0700, Albert-Jan Roskam wrote: > I am making a data processing program that will use a configuration > file. The file should contain information about: (1) source files > used, (2) (intermediate) output files, (3) used parameters/estimation > methods (4) manual data edi

Re: [Tutor] xml question

2010-07-26 Thread davidheiserca
I agree with Steven D'Aprano. Keep the code as simple as possible. A simple text file with a variable/value pair on each line is very easy to parse and store in a Dictionary object. You can use any convenient delimiter; "=", ":", "$", ... Nesting items under categories takes just a little mo

Re: [Tutor] xml question

2010-07-26 Thread Steven D'Aprano
On Tue, 27 Jul 2010 05:09:09 am Albert-Jan Roskam wrote: > Hi, > > I am making a data processing program that will use a configuration > file. The file should contain information about: (1) source files > used, (2) (intermediate) output files, (3) used parameters/estimation > methods (4) manual dat

Re: [Tutor] xml question

2010-07-26 Thread Alan Gauld
"Albert-Jan Roskam" wrote The file should contain information about: ... (4) manual data edits + datetime stamp + user name . I'd like to store this config file in xml. Sounds sensible to me. ... what would the elementtree look like? Should I just use 'config' or something similar as root

Re: [Tutor] xml question

2010-07-26 Thread Alan Gauld
"Joel Goldstick" wrote I am making a data processing program that will use a configuration file. The file should contain information about: (1) source files used, (2) (intermediate) output files, (3) used parameters/estimation methods (4) manual data edits + datetime stamp + user name . I'd

Re: [Tutor] xml question

2010-07-26 Thread Joel Goldstick
On Mon, Jul 26, 2010 at 3:09 PM, Albert-Jan Roskam wrote: > Hi, > > I am making a data processing program that will use a configuration file. > The file should contain information about: (1) source files used, (2) > (intermediate) output files, (3) used parameters/estimation methods (4) > manual

[Tutor] xml question

2010-07-26 Thread Albert-Jan Roskam
Hi, I am making a data processing program that will use a configuration file. The file should contain information about: (1) source files used, (2) (intermediate) output files, (3) used parameters/estimation methods (4) manual data edits + datetime stamp + user name . I'd like to store this con