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-09 14:52:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin4.nnrp.aus1.giganews.com.POSTED!not-for-mail Sender: Stephe@TAKVER Newsgroups: comp.lang.ada Subject: Re: Use of XML for config files References: <3CFC5DB2.A21DCF61@cs.tu-berlin.de> From: Stephen Leake Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-GC-Trace: gv1-oBmtrlmTD7sszusIJizqLP+JNgP70yqCdnRCdE= NNTP-Posting-Date: Sun, 09 Jun 2002 16:52:06 CDT Organization: Giganews.Com - Premium News Outsourcing X-Trace: sv3-uekfU9bKTNn05PL6vbpX6wrMoQ9DsrSx2JEsvxYIWEch9R097i4tWIp5R6Vdh1kFwTvK2WUTuh0TdM4!hlhb8szTVTksUbJlz75oL+NoA7XN8PxeYdmGHAhSvHgkH+aXPvbzzJk= X-Complaints-To: abuse@comcast.com X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Sun, 09 Jun 2002 21:52:06 GMT Xref: archiver1.google.com comp.lang.ada:25631 Date: 2002-06-09T21:52:06+00:00 List-Id: Volkert Barr writes: > Yes XML can help here, but the most projects i have seen, XML was a > complete > overkill! You really should look at the implemenation of Glib.XML. Get it from the GtkAda distribution at http://libre.act-europe.fr/GtkAda/ It's _one_ Ada package; the body file is 671 lines long. I don't think that's overkill for anything! > Don't forget, that a syntax definition the XML files is necessary Nope; we can ignore it, because we've got very simple requirements. However, if you want it for your app, you can add it. > and parsing/navigation/errorhandling is still your problem! This should all be covered by the Config Files API. Please check the draft spec when I post it to make sure I haven't missed something. > I believe, a simple Package/Key/Value Style works well for most > problems. And XML is a simple way to represent that style. > And today, XMLAda based on the GNAT Spitbol package and is not > compiler independent! But compiler independence should be an > requirement for the Configuration Packages! Certainly the API and file format should be compiler and OS independent. But any particular implementation is free to be compiler dependent. If enough people don't like that, they'll produce another implementation. It is not true that all XML implementations will be GNAT dependent! Glib.XML is not. There are many C implementations that could be imported. > If there is a consensus that XML is needed, the Spitbowl Package > must be ported! No. People who don't want to use GNAT must find another XML package. -- -- Stephe