Creates an I/O element element.
Element Information
| Element class | ElementConfig |
| Implementation class | DMElement |
| Nested elements | iterators and collections: ints, doubles, dates, strings, constants, value list |
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
| name | String | no | The element's name. |
| writer | string | no | The id of a writer. |
| formatter | string | no | The id of a formatter. |
| value | string | no | The dot-separated name by which a formatter locates a value in the element. |
Examples
<!-- an element with a file writer, xml formatter, and two attributes -->
<dmio:element name="class" id="xmlClasses" scope="application">
<dmio:file-writer id="classWriter" path="xml/classes.xml"/>
<dmio:xml-format id="xmlClassFormatter"/>
<dmio:attribute name="name" value="class.name"/>
<dmio:attribute name="book" value="class.book"/>
</dmio:element>
<!--
An XML formatter writes an element whose name is class. Each value
supplied to this element is named "semester" and contains a value named
"classes", a list of objects, each named "class". The formatter writes an
XML element for each class in the list, passing the class to the element
so that its attribute can look up values such as "class.name".
-->
<dmio:element name="class" value="semester.classes">
<dmio:attribute name="name" value="class.name"/>
</dmio:element>