Re: XML/Ada 1.0 - SAX - Attribute converted from String to Integer
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
Once you have an XML attribute value as a String value,
you can use the features that Simon Wright has suggested.