From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a26758eec3c2e1ad X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-10 07:45:56 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!eusc.inter.net!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Use of XML for config files Date: Mon, 10 Jun 2002 14:45:56 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <3CFC5DB2.A21DCF61@cs.tu-berlin.de> <4519e058.0206041129.5b250124@posting.google.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1023720356 22621 134.91.4.34 (10 Jun 2002 14:45:56 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Mon, 10 Jun 2002 14:45:56 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: archiver1.google.com comp.lang.ada:25674 Date: 2002-06-10T14:45:56+00:00 List-Id: Ted Dennison wrote: : If we are to stick with simple attribute-value pairs, then XML would : be major overkill. Having dealt with samba config files, # the option 'an option', dependent on foo = value, provided option bar=yes, # does bla bla bla an option = a value I really enjoy well structured configuration data. This is where a reasonably small DTD enters the scene, explaining the relations among configurable items. Being herectic for a moment, I'd say that you could even - support a config API that uses a DTD with XML as input and translates this into a program specific useful internal representation - "map" an application specific DTD to a common DTD for configurations. Lists of key:=value are flat, possibly interrupted by section headings providing a very basic name space, XML data are trees with nodes that can be individually address by - paths, - IDs - predicates. To me this looks somewhat like an asm-listing compared to a structured program. -- Georg