Hello @nto,
here is an example of updating part of a document:
String URI = "http://localhost/tamino/test";
TConnection conn = TConnectionFactory.getInstance().newConnection(URI);
TAccessLocation tal = TAccessLocation.newInstance("AccessList");
TXMLObjectAccessor xmlAccessor = conn.newXMLObjectAccessor(tal,
TDOMObjectModel.getInstance());
TXQuery updateQuery = new
TXQuery("update replace input()/AccessList/instance[@accesslistID=0]/watcher" +
" with <watcher>has been erased</watcher>");
TResponse response = xmlAccessor.xquery(updateQuery);
As mentioned by Stuart, the best place to look is in the Tamino documentation on XQuery, which you will probably find somewhere around here: C:\Program Files\Software AG\Tamino\Tamino 4.1.1.1\Documentation\xquery\xq-update.htm
Keep in mind that when changing/deleting parts of documents it is easy to get into the situation that the document no longer conforms to the schema.
I hope that helps,
Trevor.
#webMethods-Tamino-XML-Server-APIs#webMethods#API-Management