I have a requirement where an XML element node say 'UseCountIds' having multiple occurrences and with multiple values . As element node name remain same, I need to distinguish each of these as UseCountIds1,UseCountIds2,UseCountIds3.
As of now, it is equipped to have only 3 occurrences.
Response payload appears as below . On which Xquery to be executed.
<entries>
<id>1</id>
<UseCountIds>100</UseCountIds>
<UseCountIds>200</UseCountIds>
<UseCountIds>300</UseCountIds>
</entries>
Using an Xquery , it is expected to output to delimited file.
Output File
id,UseCountIds1,UseCountIds2,UseCountIds3
1,100,200,300
Expecting your valuable thoughts.