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-Thread: 103376,cb73780c3cf02d45 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!194.25.134.62.MISMATCH!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Sun, 28 Aug 2005 21:32:02 +0200 From: Georg Bauhaus User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: XML/Ada 1.0 - SAX - Attribute converted from String to Integer References: <4310a326$1@news.broadpark.no> In-Reply-To: <4310a326$1@news.broadpark.no> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <43121104$0$2100$9b4e6d93@newsread2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 28 Aug 2005 21:31:17 MEST NNTP-Posting-Host: 73128663.newsread2.arcor-online.net X-Trace: DXC=`ZC;fX5?P_L7ej[:C4ig8MQ5U85hF6f;DjW\KbG]kaMHQ>n?D9BSA]LeYlA8Y^iNQC8JM^O\[iIdCI_L>4_Dh\3G X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:4315 Date: 2005-08-28T21:31:17+02:00 List-Id: Frank wrote: > I would imagine some kind of > "Get_Value_As_Integer" readymade in the XML library. Not really in an XML library, as an XML document is just text, and XML proper is only aware of it's own types. These do not include numeric types. (SGML has them, syntax-wise.) Relax NG adds support for type libraries, XML Schema defines some basic types. These types may or may not match the types used in Ada programs. But XML Schema type value notations and Ada value notations are not 1:1, so XML is really an external format. Once you have an XML attribute value as a String value, you can use the features that Simon Wright has suggested.