WebSphere Message Brokers
File: ac30320_
Writer: Catherine Tucker

Task topic

This build: July 31, 2007 21:20:09

Setting, copying, and moving message elements using a JavaCompute node

Transform elements in the message as it passes through a JavaCompute node in the message flow.

The Java API reference information provides details about each of the methods used in the sections below.

Setting information about an element

Use these methods to set information about the referenced element:

setName()
Sets the name of the element
setValue()
Sets the value of the element
setSpecificType()
Sets the parser-specific type of the element
setNamespace()
Sets the namespace URI of the element

Moving and copying elements

Use a JavaCompute node to copy or detach an element from a message tree using the following methods:
detach()
The element is detached from its parent and siblings, but any child elements are left attached
copy()
A copy of the element and its attached children is created
Use one of four methods to attach an element or subtree that you have copied on to another tree:
addAsFirstChild(element)
Adds an unattached element as the first child of element
addAsLastChild(element)
Adds an unattached element as the last child of element
addBefore(element)
Adds an unattached element as the previous sibling of element
addAfter(element)
Adds an unattached element as the next sibling of element
Related concepts
Message flows overview
Related reference
JavaCompute node
Notices | Trademarks | Downloads | Library | Support | Feedback

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

ac30320_ This topic's URL is: