comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Use of XML for config files
Date: 14 Jun 2002 12:11:44 -0400
Date: 2002-06-14T16:19:37+00:00	[thread overview]
Message-ID: <uznxxyh4v.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: 3D08CD73.8060309@cogeco.ca

"Warren W. Gay VE3WWG" <ve3wwg@cogeco.ca> writes:

> Stephen Leake wrote:
> 
> > "Tarjei T. Jensen" <tarjei.jensen@kvaerner.com> writes:
> >>Stephen Leake wrote:
> >>
> >>>However, I think a sufficiently small subset of XML is ok. I'll be
> >>>posting a complete example Real Soon Now :).
> >>
> >>Aaarrrggggghhhhhhhh!!!!!!!!!
> >>
> >>When will people learn that config files should be readable and
> >>understandable.
> > Yes, that is one of the requirements for Config_Files.
> > You seem to be implying that XML is inherently _not_ readable, or
> > _not_ understandable.
> > Many people here disagree.
> 
> 
> If your goal is to provide a configuration file that is as simple
> as a .ini file, then I think any subset of XML is a poor choice.

Not quite; see the web page:
http://users.erols.com/leakstan/Stephe/Ada/Config_Files/config_files.html

Your statement is close, but not quite right. For example, ini files only
have one layer of hierarchy; I'm now requiring more (that seemed to be
the consensus here).

> Here's one reason why:
> 
> It _does_ add complexity. As Ted mentioned in an earlier post, if
> you had to describe to a person who barely can handle an editor
> over the phone (the worst kind of support position), you would
> have to ask many questions about whether a tag was properly closed
> etc. You'd have to start by describing how tags open and close
> for starters.. and they probably wouldn't really get it anyway.
> Then going beyond that to nested tags - arg!

Yes. Have I captured that sufficiently in my "Disadvantages of XML
format " section?

> I for one, would hate to be in that sort a support role. But even
> ignoring support roles, it is easier to describe an ini file change,
> than a XML change in a document.

Ok, if we assume people are not familiar with tag syntax.

Quoting special symbols is a bigger problem for me.

> BUT, if your _goal_ is a hierarchical structure like the Windoze
> registry, then I think you should be prepared to accept binary and
> focus on it at the API and implementation level. 

My goal is somewhere between ini and registry, but much closer to ini.
A primary requirement is editing with "simple text editors".

> The way to make it user configurable, is to provide a regedit type
> of tool that is general enough to handle most cases. Perhaps make it
> type extendable that is supported by dynamic shared libraries.
> Furthermore, it is then possible to layer some ACL type of security
> on your values.

Might as well just use the registry, or Gnome gconf. 

> I personally would like to see this registry-like data in a postgres
> database, with a smooth API to access/create/modify values. The
> disadvantage of course, is that this would require that Postgres be
> running on all hosts where your application goes. There is a fellow
> that is attempting to put all Linux configuration values into a
> Postgres database. I think I saw this in a Linux publication last
> fall. This approach will then make it easier to configure all
> aspects of the system from a GUI.

Look at the Gnome gconf stuff (on sourceforge).

> So many have already said here: your implementation will depend upon
> your design goals.

Which is why the requirements (goals) are listed on the web page.

-- 
-- Stephe



  parent reply	other threads:[~2002-06-14 16:11 UTC|newest]

Thread overview: 83+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-03 11:48 Use of XML for config files Mike and Lynn Card
2002-06-03 17:42 ` Pascal Obry
2002-06-04  6:26 ` Volkert Barr
2002-06-04 12:47   ` SteveD
2002-06-04 13:51     ` Volkert Barr
2002-06-04 19:29   ` Ted Dennison
2002-06-05  7:18     ` Volkert Barr
2002-06-05 10:24       ` Georg Bauhaus
2002-06-05 11:35         ` Preben Randhol
2002-06-05 14:52           ` Georg Bauhaus
2002-06-05 15:22             ` Preben Randhol
2002-06-05 19:11             ` Darren New
2002-06-06 13:38               ` Georg Bauhaus
2002-06-06 15:06                 ` Darren New
2002-06-07 11:28                   ` Georg Bauhaus
2002-06-07 17:10                     ` Darren New
2002-06-06  6:48           ` Volkert Barr
2002-06-06 13:27             ` Georg Bauhaus
2002-06-05 14:41       ` Robert C. Leif
2002-06-09 22:00     ` Stephen Leake
2002-06-10 15:03       ` Ted Dennison
2002-06-10 18:12         ` Stephen Leake
2002-06-12 11:25         ` Georg Bauhaus
2002-06-12 15:33           ` Darren New
2002-06-12 17:53             ` Stephen Leake
2002-06-13 14:18               ` Ted Dennison
2002-06-13 16:36                 ` Stephen Leake
2002-06-14  3:27                   ` Ted Dennison
2002-06-14 15:54                     ` Stephen Leake
2002-06-12 19:18             ` Georg Bauhaus
2002-06-13 13:53             ` Ted Dennison
2002-06-13 15:26               ` Georg Bauhaus
2002-06-13 16:39               ` Darren New
2002-06-13 17:06                 ` Georg Bauhaus
2002-06-13 17:43                   ` Darren New
2002-06-14 15:56                     ` Georg Bauhaus
2002-06-13 17:54                 ` Georg Bauhaus
2002-06-13 18:31                   ` Darren New
2002-06-14 16:04                     ` Stephen Leake
2002-06-14 16:48                       ` Darren New
2002-06-14 17:03                     ` Georg Bauhaus
2002-06-14 17:22                       ` Darren New
2002-06-18 15:20                         ` Georg Bauhaus
2002-06-18 15:37                           ` Darren New
2002-06-18 18:20                             ` Georg Bauhaus
2002-06-18 19:11                               ` Stephen Leake
2002-06-18 21:47                               ` Darren New
2002-06-19 11:31                                 ` Georg Bauhaus
2002-06-19 15:13                                   ` Stephen Leake
2002-06-19 21:14                                     ` Georg Bauhaus
2002-06-20 14:38                                       ` Stephen Leake
2002-06-20 16:02                                         ` Georg Bauhaus
2002-06-20 20:37                                           ` Stephen Leake
2002-06-21 16:24                                             ` Ted Dennison
2002-06-24 14:11                                               ` Stephen Leake
2002-06-19 16:43                                   ` Darren New
2002-06-19 20:33                                     ` Georg Bauhaus
2002-06-12 17:48           ` Stephen Leake
2002-06-13  7:42             ` Tarjei T. Jensen
2002-06-13 13:53               ` Georg Bauhaus
2002-06-13 14:10               ` Stephen Leake
2002-06-13 16:50                 ` Warren W. Gay VE3WWG
2002-06-13 17:31                   ` Tarjei Tj�stheim Jensen
2002-06-14 16:11                   ` Stephen Leake [this message]
2002-06-13 17:28                 ` Tarjei Tj�stheim Jensen
2002-06-19  9:48                   ` Preben Randhol
2002-06-10 14:45     ` Georg Bauhaus
2002-06-09 21:52   ` Stephen Leake
2002-06-10  0:02     ` Preben Randhol
2002-06-10 12:42       ` Stephen Leake
2002-06-10 16:21         ` Pascal Obry
2002-06-12 11:29           ` Georg Bauhaus
  -- strict thread matches above, loose matches on Subject: below --
2002-06-05  7:33 Grein, Christoph
2002-06-05  7:59 ` Volkert Barr
2002-06-05  8:25 Grein, Christoph
2002-06-05  8:39 ` Volkert Barr
2002-06-05  9:31 ` Manuel Collado
2002-06-05 10:01   ` Volkert Barr
2002-06-05 10:02 Grein, Christoph
2002-06-09 22:13 ` Stephen Leake
2002-06-10  1:42   ` Darren New
2002-06-10 12:46     ` Stephen Leake
2002-06-10 15:52       ` Darren New
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox