WebSphere Message Brokers
File: ac17190_
Writer: Bill Oppenheimer

Task topic

This build: July 31, 2007 21:18:52

Accessing elements in a message in the MRM domain

You can use ESQL to manipulate the logical tree that represents a message in the message flow. This topic describes how to access data for elements in a message in the MRM domain.

You can populate an element with data with the SET statement:
SET OutputRoot.MRM.Name = UPPER(InputRoot.MRM.Name);

The field reference on the left hand side of the expression refers to the element called Name within the MRM message domain. This statement takes the input value for the Name field, converts it to uppercase, and assigns the result to the same element in the output message.

The Name element is defined in the noTarget namespace. No namespace prefix is specified in front of the Name part of the field reference in the example above. If you have defined an MRM element in a namespace other than the noTarget namespace, you must also specify a namespace prefix in the statement. For example:
DECLARE brw NAMESPACE 'http://www.ibm.com/Borrowed';

SET OutputRoot.MRM.brw:Borrowed.VideoTitle = 'MRM Greatest Hits';

For more information about using namespaces with messages in the MRM domain, see Accessing the content of a message in the MRM domain with namespace support enabled.

Related concepts
Message flows overview
ESQL overview
Message modeling
Related tasks
Designing a message flow
Defining message flow content
Managing ESQL files
Developing message models
Accessing the content of a message in the MRM domain with namespace support enabled
Related reference
Compute node
Database node
Filter node
ESQL reference
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:18:52

ac17190_ This topic's URL is: