comp.lang.ada
 help / color / mirror / Atom feed
* Re: Use of XML for config files
@ 2002-06-05  8:25 Grein, Christoph
  2002-06-05  8:39 ` Volkert Barr
  2002-06-05  9:31 ` Manuel Collado
  0 siblings, 2 replies; 83+ messages in thread
From: Grein, Christoph @ 2002-06-05  8:25 UTC (permalink / raw)


From: Volkert Barr <barr@cs.tu-berlin.de>
> > Where is this grammar? 
> > > I hope Stephan Leake will add it to his "Config-Proposal Page"!

Where is this page? I've just entered this thread (back from holidays).
> 
> 
> > > XML-like Configuration:
> > >
> > > <configuration>
> > >   <config_item name= "Config_Item1" >
> > >     <Key> Key </Key>
> > >     <value> Value </value>
> > Can this be repeated? There might be more than one key for a config_item.>
> Sure ! Remeber this just an example and not a syntax definition!!
> 
> > >     <config_item name = "Config_Item2" >
> > >       <entry>
> > What's the use of <entry>?
> A Config_Item can have a list of Entries which are
> Key/Value Pairs! Thats typical XML Style! 

I know XML... Why <entry> inside an inner <config_item name = "Config_Item2" > 
and not inside an outer <config_item name= "Config_Item1" >. This is 
inconsistent and looks superfluous.
And by the way: XML requires an end tag for the inner config_item which you have 
forgotten in your example.

> <entry>
>     <key> Name </key>
>     <value> Grein </value>
> </entry> 
> <entry>
>     <key> Vorname </key>
>     <value> Christoph</value>
> </entry>

So your proposal looks like (???)

<configuration>
  <config_item name="Config_Item1">
    <entry>
      <Key> Key </Key>
      <value> Value </value>
    </entry>
    <config_item name="Config_Item2">
      <entry>
        <key> Key </key>
        <value> Value </value>
      </entry>   
    </config_item>
  </config_item>
</configuration>



^ permalink raw reply	[flat|nested] 83+ messages in thread
* Re: Use of XML for config files
@ 2002-06-05 10:02 Grein, Christoph
  2002-06-09 22:13 ` Stephen Leake
  0 siblings, 1 reply; 83+ messages in thread
From: Grein, Christoph @ 2002-06-05 10:02 UTC (permalink / raw)


> I would prefer nested configuraton sections, and simplify the notation
> for key/value pairs:
> 
> <configuration>
>   <section name="Section1">
>     <section name="SubSectionA">
>       <key name="Key1">Value1</key>
>       <key name="Key2">Value2</key>
>     </section>
>     <key name="KeyX">ValueX</key>
>   </section>
> </configuration>

I would also prefer this syntax. It's much shorter and thus easier to read.



^ permalink raw reply	[flat|nested] 83+ messages in thread
* Re: Use of XML for config files
@ 2002-06-05  7:33 Grein, Christoph
  2002-06-05  7:59 ` Volkert Barr
  0 siblings, 1 reply; 83+ messages in thread
From: Grein, Christoph @ 2002-06-05  7:33 UTC (permalink / raw)


From: Volkert Barr <barr@cs.tu-berlin.de>
 
> I have set up a first small datamodel for hierarchical configuration 
> data (nested Config_Items containing lists of (Key,Value)-Tupels) 
> and defined a BNF-Grammar for text (file) representation of this
> data.

Where is this grammar?

> I hope Stephan Leake will add it to his "Config-Proposal Page"!
> 
> The grammes defines the following style:
> 
> --
> -- Comment Block
> --
> Config_Item1.Key := Value
> 
> -- Comment
> Config_Item1.Inner_Config_Item2.Key := Value
> 
> 
> The same can be done in XML, but the next you need is
> an "XML Editor" ;-) (That is one reason, why there is so
> much Business (and money) around XML.) 
> 
> XML-like Configuration:
> 
> <configuration>
>   <config_item name= "Config_Item1" >
>     <Key> Key </Key>
>     <value> Value </value>
Can this be repeated? There might be more than one key for a config_item.

>     <config_item name = "Config_Item2" >
>       <entry>
What's the use of <entry>?

>         <key> Key </key>
>         <value> Value </value>
>       </entry>   
      </config_item>                    is missing here.

>   </config_item>
> </configuration>



^ permalink raw reply	[flat|nested] 83+ messages in thread
* Use of XML for config files
@ 2002-06-03 11:48 Mike and Lynn Card
  2002-06-03 17:42 ` Pascal Obry
  2002-06-04  6:26 ` Volkert Barr
  0 siblings, 2 replies; 83+ messages in thread
From: Mike and Lynn Card @ 2002-06-03 11:48 UTC (permalink / raw)


Hello CLA-

I thought I would mention that some of our programs at Lockheed-Martin 
have begun using XML for configuration files. It really is handy because 
you don't have to write your own token-paring code, and I would expect 
it to eventually become standard practice.

I used XML recently on a project to store some static configuration data 
and read it in and turned it into Ada objects using the SAX facility in 
XMLAda. This was a great technique that saved me a lot of time.

Just my $0.02, YMMV.

- Mike



^ permalink raw reply	[flat|nested] 83+ messages in thread

end of thread, other threads:[~2002-06-24 14:11 UTC | newest]

Thread overview: 83+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-05  8:25 Use of XML for config files Grein, Christoph
2002-06-05  8:39 ` Volkert Barr
2002-06-05  9:31 ` Manuel Collado
2002-06-05 10:01   ` Volkert Barr
  -- strict thread matches above, loose matches on Subject: below --
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
2002-06-05  7:33 Grein, Christoph
2002-06-05  7:59 ` Volkert Barr
2002-06-03 11:48 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
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

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