Previous Topic

Next Topic

Book Contents

Book Index

Mapping XML Property Representation

There are several ways to represent the mapping between Source Device Item property and Target Device Item property. The different ways depends on the types of the properties.

If the property value is map, collection, array, etc, then the representation of the property should use one of the child elements <map-value> or <array-value>. More information about the XML complex object value representation can be found in "Complex Object Value" section of the Mapping XML Value Representation guide.

<read>

  <target-value>

    <map-value>

      <element key="unit">

        <map-value>

          <element key="symbol" value="&#176;" />

        </map-value>

      </element>

      <element key="value">

        <map-value>

          <element key="value" script="#{sourceValue} * 2" />

        </map-value>

      </element>

    </map-value>

  </target-value>

</read>