SagTaminoQuery problem

Hello again

I have this sequence:

<?xml version="1.0" encoding="UTF-8"?>

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.

What is the matter?
Does anyone help me?

<?xml version="1.0" encoding="UTF-8"?>



Hi Raffaele,

Could you post the tamino schema, some sample data and a sample Mediator payload :?: It would help to discover what is going wrong in your sequence.

Thanks, :wink:

Hi Raffaele,

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.

Hope this helps.

Hi everybody,

al last I worked out my problem!

I used xbd.tamino.accessor=stream and iterated on the user.count = {count(//Processing)} property.

This following sequence works fine

Thanks a lot