Avatar

Correct answer by
Level 10

Ok,

Let's try a different approach.

You have your xml information in a xml variable right?

Why don't you just use a setValue with a xPath expression to get the value of all the nodes.

You can get the count using the following xPath: count(/process_data/xmlvar/Email/EmailId)

Then set a counter variable i (data type interger) to the count value.

Then loop and increment the counter and build you string using the following xPath

/process_data/@strList = concat(/process_data/@strList,/process_data/xmlvar/Email/EmailId[process_data/@i]/mailId)

You might have to replace process_data/@i with number(process_data/@i) for the xPath to work properly.

Jasmin

View solution in original post