From: "Marc A. Criley" <mcNOSPAM@mckae.com>
Subject: ANN: XML EZ Out 1.00
Date: Fri, 08 Apr 2005 13:57:01 -0500
Date: 2005-04-08T13:57:01-05:00 [thread overview]
Message-ID: <59e35$4256d02a$4995051$2370@ALLTEL.NET> (raw)
XML EZ_Out is a small set of packages intended to aid the creation of
XML-formatted output from within Ada programs. It basically wraps the
tags and data provided to it with XML syntax and writes them to a
user-supplied medium.
This medium can be any sort of writable entity, such as a file, a
memory buffer, or even a communications link, such as a socket. The
only functionality required of the medium is that it supply a
meaningful "Put" (for writing a string) and "New_Line" procedure.
XML EZ Out is available at http://www.mckae.com/xml_ezout.html.
==================================================================
The key facilitator of making XML EZ_Out usage readable when
generating XML documentation is the overloading of a number of
variations of the "=" function. By doing this, a simple XML element
having no content, such as:
<player lastName="Cuddyer" firstName="Michael" team="Twins"/>
can be generated as:
Output_Tag(F,
"player",
("lastName" = "Cuddyer",
"firstName" = "Michael",
"team" = "Twins"));
To simplify the specification of the attributes, variations of "=" are
provided. Given these declarations:
Batting_Average : Float;
At_Bats : Natural;
One can directly reference the variables:
Output_Tag(F,
"stats",
("battingAvg" = Batting_Average,
"atBats" = At_Bats));
Hope this is useful, have fun.
Marc A. Criley
www.mckae.com
reply other threads:[~2005-04-08 18:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox