Our "QIE Reference Manual" from the help menu drop down in QIE has some xpath expressions that will help with the path that you will want to use on page 103.
If your message is not already in XML then you can convert the String to XML with:
message = qie.parseXMLString(message.getNode('/'));
You can add to XML content in several ways.
Using this XML as an example:
<bookstore>
<book id="abc">
<title lang="english">Harry Potter</title>
<price>29.99</price>
</book>
</bookstore>
To add an attribute:
message.setNode("/bookstore/book/price/@discount", 'Yes');
Or to add an element:
message.setNode("/bookstore/book/price", '<Status>Ok</Status>');
Also here is a link to an example channel that you can import:
https://www.qvera.com/files/qie_Sample_Xpath_Add_Attribute.zip