I have some XML (example given)
<emails>
<email email_id="[email protected]"/>
<email email_id="[email protected]"/>
...
<email email_id="[email protected]"/>
<emails>
I want to get the email_id from each email node and put it into a string. e.g "[email protected], [email protected], [email protected]..."
I am guessing I need to use xmltable in some form but can't work out how to get the values to use other than writing them in a select statement.