From: Stephen Leake <stephen_leake@acm.org>
Subject: Re: Use of XML for config files
Date: Sun, 09 Jun 2002 22:00:06 GMT
Date: 2002-06-09T22:00:06+00:00 [thread overview]
Message-ID: <wkbsakqfiw.fsf@acm.org> (raw)
In-Reply-To: 4519e058.0206041129.5b250124@posting.google.com
dennison@telepath.com (Ted Dennison) writes:
> Volkert Barr <barr@cs.tu-berlin.de> wrote in message
> news:<3CFC5DB2.A21DCF61@cs.tu-berlin.de>...
>
> > the Configuration Packages! If there is a consensus that XML is needed,
> > the Spitbowl Package must be ported!
>
> I don't think this would be nessecary or a good idea. Making our own
> Configuration XML parser is not out of the question. Parsing any XML
> language that anyone could ever come up with is a very different task
> than parsing a specific XML language. Making an XML parser customised
> to the configuration XML language (whatever that would end up being)
> may be more work than using ACT's XML reader, but it wouldn't be an
> undoable effort.
Yes.
> We really only need to make the package *spec*s portable Ada. It
> would be nice to have a portable reference implementation too, but
> its not an absolute nessecity to have one, as long as its *possible*
> to make one.
Exactly.
> However, I agree with you that its probably more work than the task
> requires. I think it would be silly to use XML, unless we are
> getting something out of it that we can't easily get out of other
> grammars. PR is *not* a sufficient answer. :-)
Yes. However, I think the potential for an application to "grow" the
config file beyond the Config_File API, and use a "full" XML parser
instead, is a Good Thing. Clients with installed config files would
not need to change them when the app is upgraded.
> What that means is that if we were to use XML, we should support
> both user-defined configuration item attributes
Just because XML supports this, doesn't mean the Config_File API
should. We're looking for a simple subset. If the app decides it needs
these, it can go to a full XML parser.
> and some kind of object nesting (configuration items defined within
> other configuration items).
Actually, the "multiple levels" is precisely the same as nested
objects. That is:
foo.bar.item_1
foo.bar.item_2
foo.figs.item_1
is the same as:
object foo
object bar
item_1
item_2
end object
object figs
item_1
end object
end object
Hope that's clear :).
> I haven't really heard anyone seriously arguing the usefulness of
> this stuff.
We all have :).
> If we are to stick with simple attribute-value pairs, then XML would
> be major overkill.
In what way? I have a very small package that parses the subset of XML
that I need to meet the Config_File spec (Glib.XML - 671 lines in the
body). What's wrong with that?
--
-- Stephe
next prev parent reply other threads:[~2002-06-09 22:00 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 [this message]
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
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