All now becomes clear…
Bill Leeney points out the following about your Java code. The query
String tq = “/polist/po[5]/lineitems/lineitem[1]/item”;
returns a small subset of the whole document, not the whole document itself. As Tamino update takes place on a ‘whole document’ level i.e. you can’t just specify one node/element in an update, there is no surprise that when you try to use the result of this query in an update it doesn’t work. You need to get the whole document, change the elements you wish to change and write the whole document back again with update.
As for your second problen, inoids, any defined schema in Tamino will store multiple documents of that schema. Each of these documents has a unique inoid, not the elements/nodes within the document.
You state " I have added only one document" so therefore it is no surprise that query results only show inoid 1.
If your schema was
You could present each po to tamino separately. Each stored po would then have it’s own unique ino:id.
#webMethods#webMethods-Tamino-XML-Server-APIs#API-Management