Configuration

Datamixer objects can be configured in XML. An XML element corresponds to each datamixer object. The mapping is defined in a Java properties file named /datamixer-xml.properties on the classpath.

Three namespaces are recognized by the configuration XML parser, and are often represented as:

  • collections, containers, and iterators:
    xmlns:dm="http://datamixer.org/config"
  • functions:
    xmlns:dmf="http://datamixer.org/config/functions"
  • I/O:
    xmlns:dmio="http://datamixer.org/config/io"

Attributes

All elements have these attributes in common:

Name Type Required Description
idStringno The name by which this element can be referred to by other elements.
scopeStringno The context in which the id attribute is placed. Possible values are application and page. Default is the element (application or page) under which this element is nested.

Element Listing

Common
application
file
listener
page
Collections and Iterators
ints, doubles, dates, strings
iterators
constants
value list
Functions
line
random
arithmetic: add, subtract, multiply, divide
datamixer: forEach
string: concat
Containers
list
counter
I/O
attribute
element
formatters: csv-format, xml-format
writers: file-writer, stream-writer