comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: XML/Ada 1.0 - SAX - Attribute converted from String to Integer
Date: Sun, 28 Aug 2005 21:32:02 +0200
Date: 2005-08-28T21:31:17+02:00	[thread overview]
Message-ID: <43121104$0$2100$9b4e6d93@newsread2.arcor-online.net> (raw)
In-Reply-To: <4310a326$1@news.broadpark.no>

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.



      parent reply	other threads:[~2005-08-28 19:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-27 17:29 XML/Ada 1.0 - SAX - Attribute converted from String to Integer Frank
2005-08-27 20:58 ` Simon Wright
2005-08-28 19:32 ` Georg Bauhaus [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox