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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no 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-05 07:18:08 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.25.12.36!oleane.net!oleane!freenix!enst!enst.fr!not-for-mail From: "Robert C. Leif" Newsgroups: comp.lang.ada Subject: RE: XML and Ada was RE: A standard package for config files is needed Date: Wed, 5 Jun 2002 07:17:13 -0700 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1023286682 59350 137.194.161.2 (5 Jun 2002 14:18:02 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 5 Jun 2002 14:18:02 +0000 (UTC) Return-Path: X-Envelope-From: rleif@rleif.com X-Envelope-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:25357 Date: 2002-06-05T07:17:13-07:00 From: Bob Leif To: Georg Bauhaus et al. I think of a schema as the data types in an Ada specification. The XML document data has to be type compliant with the schema. A second schema can make subtypes from or extend types present in an imported (withed) schema. I admit that I have an Ada mind set. -----Original Message----- From: comp.lang.ada-admin@ada.eu.org [mailto:comp.lang.ada-admin@ada.eu.org] On Behalf Of Georg Bauhaus Sent: Tuesday, June 04, 2002 11:49 AM To: comp.lang.ada@ada.eu.org Subject: Re: XML and Ada was RE: A standard package for config files is needed 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