Sample XML - Edit specification demonstrating various data item operations
The edit specification allows filter expressions that
define operations to be performed on the data item values before
they are compared to the values provided in the edit specification.
This example demonstrates how the edit specification declares that
the trim operation is performed on the Order Type data
item values.
Note that the entire edit specification is not repeated in this example.
<?xml version="1.0" encoding="UTF-8"?>
<es:editSpecification
xmlns:es="http://developer.cognos.com/schemas/editSpecification/1/">
<es:actions>
<es:filter>
<es:expression>
<es:operator>
<es:name>
http://developer.cognos.com/schemas/editSpecification/1/operators#and
</es:name>
<es:arguments>
<es:argument>
<es:value>
<es:dataItem>
<es:name>Order Type</es:name>
<es:operator>
http://developer.cognos.com/schemas/editSpecification/1/operators#trim
</es:operator>
</es:dataItem>
<es:value>
<es:simple>Internet</es:simple>
</es:value>
</es:value>
</es:argument>
</es:arguments>
</es:operator>
</es:expression>
</es:filter>
</es:actions>
</es:editSpecification>