Re: XML/Ada 1.0 - SAX - Attribute converted from String to Integer



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.
.



Relevant Pages

  • Re: Tim Brays Mind
    ... Unotal is not intended specifically to write HTML, ... I am aware of Enamel by Erik Naggum: He also does not like XML ... the designers of XML document types are forced to ... that does not have many more notations than attributes ...
    (comp.lang.lisp)
  • Re: Typed Dataset from xsd-File
    ... XDR to XSD ... Generates an XML schema from an XML-Data-Reduced schema file. ... Generates common language runtime DataSet classes from an XSD schema file. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: XML from Commerce server 2002 -> Biztalk 2004
    ... sample XML file from your CS2002 developers and use it to create a BTS2004 ... "A BizTalk Enthusiast" ... > files generated by Commerce Server 2002. ... > database and then generate the XML and XML schema corresponding to the ...
    (microsoft.public.biztalk.general)
  • [ANN] CodeSynthesis XSD/e 3.2.0 released
    ... licenses), dependency-free XML Schema to C++ compiler for mobile, embedded, ... It provides XML parsing, serialization, XML ... Support for schema evolution using substitution groups. ... Improved support for XML Schema facet validation, ...
    (comp.os.linux.embedded)
  • [ANN] CodeSynthesis XSD/e 3.2.0 released
    ... licenses), dependency-free XML Schema to C++ compiler for mobile, embedded, ... It provides XML parsing, serialization, XML ... Support for schema evolution using substitution groups. ... Improved support for XML Schema facet validation, ...
    (microsoft.public.windowsce.embedded)