XMLMath 1.1-SNAPSHOT-3 review

Download
by rbytes.net on

Xmlmath project is an expression evaluation engine that takes xml files as input, evaluates the (often mathematical) problem and calc

License: GPL (GNU General Public License)
File size: 0K
Developer: Erik van Zijst
0 stars award from rbytes.net

Xmlmath project is an expression evaluation engine that takes xml files as input, evaluates the (often mathematical) problem and calculates the result.

Basic Expression StructureContents

An xmlmath expression consists of a tree of nested xml tags. Each tag reads the value of its child nodes, applies an operation to it and returns the result to its parent tag. This is illustrated below with the expression that calculates 1 + 1.

< add xmlns="http://xmlmath.org/1.0" >
< long value="1"/ >
< long value="1"/ >
< /add >

Note: Because the xmlmath expression parser validates the input files against the xmlschema, it is necessary to always include the proper xml namespace directive in the expression's root tag.

Requirements:
Xmlmath is written in Java 1.5 and as such requires a 1.5 runtime environment. Because xmlmath makes use of specific 1.5 features, older Java environments are currently not supported.
Although xmlmath uses the open-source xmlbeans library for parsing its expression files, it is not necessary to install xmlbeans separately: the binary distributions of xmlmath have a built-in copy of xmlbeans.

What's New in This Release:
Xmlmath can now be used as a library.
Arguments may be passed to expressions.
if/then/else elements were made optional in "choose", "for", and "sum". Nested "include" URLs are now relative to each other.
Conditional evaluation with if/then/else was added.
The stanza/delcare order was switched, so declarations may require stanzas.
Includes, stanzas, and declarations are allowed directly in "stanza" and "declare".
"listItem" was added.
Explicit casting was added.
"linkBoolean", "inlineBoolean", "listSum", and "rnd" were added.
Declarations can now be const (evaluated only once).

XMLMath 1.1-SNAPSHOT-3 keywords