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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7b97e385047500eb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Robert C. Leif" Newsgroups: comp.lang.ada Subject: Re: Experiences of XML parser generators for Ada? Date: Fri, 3 Dec 2004 15:18:03 -0800 Organization: Newport Instruments Message-ID: Reply-To: rleif@rleif.com NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: melchior.cuivre.fr.eu.org 1102115936 64298 212.85.156.195 (3 Dec 2004 23:18:56 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Fri, 3 Dec 2004 23:18:56 +0000 (UTC) To: Return-Path: X-Authenticated-User: rleif.rleif.com X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcTZJ7BrArv/M2Y+SWqTLJ1m5pyKmwABoXUQ In-Reply-To: <20041203110026.6F40B4C408A@lovelace.ada-france.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:6746 Date: 2004-12-03T15:18:03-08:00 I have had the experience of manually creating a dual system of XML schema and Ada for Cytometry, CytometryML. This is described, at length in the CytometryML page of my web site, WWW.NewportInstruments.com. I also gave a Birds of a Feather Presentation in absentia at SIGAda 2004, which is also available on the Ada_Med page and includes audio. Translation of most of Ada into XML and XML schemas is straightforward and probably can be facilitated by constructing tools based on ASIS. However, when the XML including schemas is defined as elements with a hidden type, there could be a problem. One simple solution is to declare a type with a name which is a concatenation of the XML element's name and the suffix type. In many case, it would be appropriate to make the Ada type private. I have created numeric data-types in Ada and XML schema with the same names. As luck would have it, these ECMA based names are also used for MathCad. I have also created Ada bounded strings that include character sets. These provide a close approximation of XML strings. XML strings can also include a constraint based on a minimum number of characters. I still strongly believe a description of Ada in the form of XML schema should be created. The goal is to construct eventually a programming environment including an editor based on XML. Bob Leif