You can manipulate message body data by using a JavaCompute node.
The message body is always the last child of root, and its parser name identifies it, for example XML or MRM.