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,47bc849aad30d586 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-04 11:48:37 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: XML and Ada was RE: A standard package for config files is needed Date: Tue, 4 Jun 2002 18:48:36 +0000 (UTC) Organization: GMUGHDU Message-ID: References: NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1023216516 27937 134.91.4.34 (4 Jun 2002 18:48:36 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Tue, 4 Jun 2002 18:48:36 +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:25317 Date: 2002-06-04T18:48:36+00:00 List-Id: Robert C. Leif wrote: : From: Bob Leif : To: Stephen Leake et al. : : Please validate against a schema. Schemas have a type structure similar : to Ada's. Hence, validation is useful. DTDs are an old SGML construct, : that will, hopefully, eventually disappear. Doubt it, and Goldfarbs comments on this seem to indicate, at least to me, that DTDs have and will have very good uses. Why put everything about data in schemas and not in applications? ONly reason I can think of is lack of (human) communication of data exchange parties. That is: Write a good DTD indicating what you expect to be in the data and make this DTD known to the other end. Then write appropritate programs. Note also that there is a convention based way to put type information into attributes. It's just not as standardised as schemas might be. I can't think of a software library that automatically creates composed data objects of some (how?) automatically created type by reading an input stream that follows a schema. Somewhere I have to decide what information to expect... Am I missing something? -- Georg