I need XPath code to take child elements (one or more) and put them on a single line, separated by commas.
So if I have the following XML:
<Authors>
<Author>Bob Smith</Author>
<Author>Mary Jones</Author>
<Author>Sam Doe</Author>
</Authors>
I want the following output:
Bob Smith, Mary Jones, Sam Doe
It needs to be smart enough to leave of the comma of the last author. And there might be only one author.
Much thanks