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-14 08:56:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-fra1.dfn.de!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: Fri, 14 Jun 2002 15:56:05 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <3CFC5DB2.A21DCF61@cs.tu-berlin.de> <4519e058.0206041129.5b250124@posting.google.com> <4519e058.0206100702.5a4b431a@posting.google.com> <3D0769F7.68F5BD9C@san.rr.com> <4519e058.0206130553.3ee195f1@posting.google.com> <3D08CAF0.846AA176@san.rr.com> <3D08D9EE.3B446C2B@san.rr.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1024070165 25343 134.91.4.34 (14 Jun 2002 15:56:05 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Fri, 14 Jun 2002 15:56:05 +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:25948 Date: 2002-06-14T15:56:05+00:00 List-Id: Darren New wrote: : I don't think DTDs allow you to say things like certain values must be : within certain ranges, etc. If DTDs were that powerful, I'd start to agree : with you. They aren't in all cases, that's why people invented schemata, but for example will give you a thing with a switch which is on by default, with one of two possible values, 4 possible values for a connection attribute and a unique identifier. : But I meant something more complex, since I don't think anyone : wants to teach their users XML DTD syntax to explain that this has to be : "yes" or "no." Sure, the idea is, again, that computers will have swallowed the DTD and people constructing or modifying configuration data won't be able to enter just about anything. Depending on whether there is a specialized configuration application/applet/... or not, something more complex can be done or not. : plus I don't think : any of the existing Ada XML libraries will validate against a DTD, will : they? Afaik, some do. Lots of software libraries available for binding and studying, e.g. SP, fxp, libxml2, ...