XmlDataSource: clarifications on usage

Dear Support,
I notice strange behavior when using n XmlDataSource with Linq reporting engine.

The XML is:

<DATA>
  <CAMPO>Hello World, I'm small report...</CAMPO>
  <INFO>Report filled with form</INFO>
  <CAT1>
    <ebbasta>The End!</ebbasta>
    <val>hello</val>
    <val>bye bye</val>
  </CAT1>
</DATA>

The Word template is prepared like this:

<<foreach [v in CAT1.val]>>

  • <<[v]>>
    << /foreach>>

And the output is:

  • val: 0; hello;
  • val: 0; bye bye;

I would have expected something like:

  • hello
  • bye bye

Have you got any hint to help me understand what am I doing wrong?
Thanks in advance for your attention,
Best regards,
FV

Hi,
after better reviewing documentation on LINQ I modified the template as follows:

  • <<foreach [in CAT1.val]>><<[val_Text]>>
    << /foreach>>

and it is now working as expected. My issue is solved.

Kind regards,
FV

@fabrizio.vaglia,

It is great that you were able to find what you were looking for. Please let us know any time you may have any further queries in future.