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-02 00:54:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!pd9e4de6d.dip.t-dialin.NET!not-for-mail From: Gerhard =?iso-8859-15?Q?H=E4ring?= Newsgroups: comp.lang.ada Subject: Re: XML and Ada was RE: A standard package for config files is needed Date: 2 Jun 2002 07:54:51 GMT Organization: People's Front of Judea Message-ID: References: NNTP-Posting-Host: pd9e4de6d.dip.t-dialin.net (217.228.222.109) X-Trace: fu-berlin.de 1023004491 33889892 217.228.222.109 (16 [124666]) User-Agent: slrn/0.9.7.4 (Linux) Cache-Post-Path: gargamel.hqd-internal!unknown@lilith.hqd-internal X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Xref: archiver1.google.com comp.lang.ada:25189 Date: 2002-06-02T07:54:51+00:00 List-Id: Robert C. Leif wrote in comp.lang.ada: > From: Bob Leif > To: Pascal Obry et al. Not sure what this means and why you're posting to usenet if this was meant as a personal email!? > Ada and XML both have: range checking, enumerated types, begins and > ends, bounded strings, as well as nesting of types or classes. XML has a > rather verbose import statement that is equivalent to a with and a > renames. The assignment of attributes in XML is similar to the formal > actual notation of Ada. The extendable style language XSL, even has end > if structures. Not considering DSSL and XSLT, which look like a LISP processor in XML/SGML, XML is _not_ a programming language. It's only a (rather verbose) way to represent structured data. The main advantage of XML is that it's standardized, so you can use existing parsers instead of inventing your own writer and reader for your data formats. It also has its share of problems. For example parsing it is relatively inefficient, it takes up a lot of space (bad for embedded devices, but there are hacks that store XML in a binary format), and it has IMO relatively poor query capabilities. At least compared to an RDBMS. > Ada syntax is certainly preferable and much more succinct; however, > XML and its schema based family of languages can comfortably coexist > with Ada. Sure. They're different beasts. Gerhard -- mail: gerhard bigfoot de registered Linux user #64239 web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id AD24C930 public key fingerprint: 3FCC 8700 3012 0A9E B0C9 3667 814B 9CAA AD24 C930 reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))