title: Xpath Query to provide a comma-delimited output
body: <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; 
  &lt;Envelope&gt; 
     &lt;Body&gt; 
        &lt;RetrieveChangeKeysListResponse message="Success"&gt; 
           &lt;keys&gt; 
              &lt;ChangeID type="String"&gt;C10286&lt;/ChangeID&gt; 
           &lt;/keys&gt; 
           &lt;keys&gt; 
              &lt;ChangeID type="String"&gt;C10296&lt;/ChangeID&gt;
           &lt;/keys&gt; 
        &lt;/RetrieveChangeKeysListResponse&gt; 
     &lt;/Body&gt; 
  &lt;/Envelope&gt;
  </code></pre>
  
  <p>From the above xml file, output for the below xpath query is giving the values without delimiter.</p>
  
  <p><em>Query:</em></p>
  
  <pre><code>/Envelope/Body/RetrieveChangeKeysListResponse/keys/ChangeID/text()
  </code></pre>
  
  <p><em>Output:</em> <code>C10286C10296</code></p>
  
  <p>How can I get the output with a delimiter between the values. </p>
  
  <p>Example: (<code>C10286,C10296</code>)</p>
  
  <p>Need your help in this.</p>
  
  <p>Thanks and regards</p>
  
  <p>Riyas Hussain A</p>