cancel
Showing results for 
Search instead for 
Did you mean: 

Concat same node field in XPath of CPI

0 Kudos

Dear All,

I have a requirement of concatenating same node fields as given below,

Request Structure:

<Batch_Request>

<Batch>1</Batch>

<Batch>2</Batch>

<Batch>3</Batch>

</Batch_Request>

Excepted output: 1, 2, 3

but we are getting as: 123,

Can this be achieved in XPath expression.

Thank you.,!

manoj_khavatkopp
Active Contributor
0 Kudos

Can you please let us know are you trying to do this in CPI or PI/PO ? as you have tagged this question to both tags.

Accepted Solutions (1)

Accepted Solutions (1)

manoj_khavatkopp
Active Contributor

Try the below XPATH , this worked for me :

string-join((//Batch_Request/Batch/text()),',')

Answers (1)

Answers (1)

0 Kudos

hi Manoj,

We are trying this in CPI, at Content Modifier in Exchange properties to combine same node values using comma separator.