The Tamino query returns 8 documents with root .
If I test Mediator properties, I can see:
user.count.torecover = 8
I want to get a single document from the payload, for example the first document.
So I tried to get it into user.firstDocument property, but it does not work.
Two comments. First, using xpath expressions is a set statement:
will only set the value of text nodes, because message properties can only contain text values. It will not set the entire document fragment.
Second, you might want to conside using the xbd.tamino.accessor=“XML” and use the iterator capabilities to retrieve the desired result document. The "XML accessor returns one document at a time, the “stream” accessor returns all the query results in one document.