* ANN: XML EZ Out 1.00
@ 2005-04-08 18:57 Marc A. Criley
0 siblings, 0 replies; only message in thread
From: Marc A. Criley @ 2005-04-08 18:57 UTC (permalink / 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-08 18:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-08 18:57 ANN: XML EZ Out 1.00 Marc A. Criley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox