<p>It is possible to use DOM queries to get the parsed values. Please check below code snippet.</p>
<pre class="lang-js prettyprint-override"><code>fetch(&quot;https://export.arxiv.org/api/query?id_list=1804.10436&quot;)
    .then(response =&gt; response.text())
    .then(str =&gt; new window.DOMParser().parseFromString(str, &quot;text/xml&quot;))
    .then(xml =&gt; Array.from(xml.querySelectorAll('author&gt;name')).map(e =&gt; e.textContent).join(&quot;, &quot;))
    .then(console.log);

</code></pre>
Javascript get all tag values with the same tag name
<p>I have the javascript below that fetches an XML feed:</p>
<pre class="lang-js prettyprint-override"><code>fetch(&quot;https://export.arxiv.org/api/query?id_list=1804.10436&quot;)
    .then(response =&gt; response.text())
    .then(str =&gt; new window.DOMParser().parseFromString(str, &quot;text/xml&quot;))
</code></pre>
<p>The XML looks like below:</p>
<pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
&lt;feed xmlns=&quot;http://www.w3.org/2005/Atom&quot;&gt;
  &lt;link href=&quot;http://arxiv.org/api/query?search_query%3D%26id_list%3D1804.10436%26start%3D0%26max_results%3D10&quot; rel=&quot;self&quot; type=&quot;application/atom+xml&quot;/&gt;
  &lt;title type=&quot;html&quot;&gt;ArXiv Query: search_query=&amp;amp;id_list=1804.10436&amp;amp;start=0&amp;amp;max_results=10&lt;/title&gt;
  &lt;id&gt;http://arxiv.org/api/nUEsN1vTKh1gSfUw4HiR2ZTFdzs&lt;/id&gt;
  &lt;updated&gt;2021-04-15T00:00:00-04:00&lt;/updated&gt;
  &lt;opensearch:totalResults xmlns:opensearch=&quot;http://a9.com/-/spec/opensearch/1.1/&quot;&gt;1&lt;/opensearch:totalResults&gt;
  &lt;opensearch:startIndex xmlns:opensearch=&quot;http://a9.com/-/spec/opensearch/1.1/&quot;&gt;0&lt;/opensearch:startIndex&gt;
  &lt;opensearch:itemsPerPage xmlns:opensearch=&quot;http://a9.com/-/spec/opensearch/1.1/&quot;&gt;10&lt;/opensearch:itemsPerPage&gt;
  &lt;entry&gt;
    &lt;id&gt;http://arxiv.org/abs/1804.10436v1&lt;/id&gt;
    &lt;updated&gt;2018-04-27T10:57:45Z&lt;/updated&gt;
    &lt;published&gt;2018-04-27T10:57:45Z&lt;/published&gt;
    &lt;title&gt;Characterizing the highly cited articles: a large-scale bibliometric
  analysis of the top 1% most cited research&lt;/title&gt;   
    &lt;author&gt;
      &lt;name&gt;Pablo Dorta-González&lt;/name&gt;
    &lt;/author&gt;
    &lt;author&gt;
      &lt;name&gt;Yolanda Santana-Jiménez&lt;/name&gt;
    &lt;/author&gt;
    &lt;arxiv:comment xmlns:arxiv=&quot;http://arxiv.org/schemas/atom&quot;&gt;23 pages, 6 tables, 2 figures&lt;/arxiv:comment&gt;
    &lt;link href=&quot;http://arxiv.org/abs/1804.10436v1&quot; rel=&quot;alternate&quot; type=&quot;text/html&quot;/&gt;
    &lt;link title=&quot;pdf&quot; href=&quot;http://arxiv.org/pdf/1804.10436v1&quot; rel=&quot;related&quot; type=&quot;application/pdf&quot;/&gt;
    &lt;arxiv:primary_category xmlns:arxiv=&quot;http://arxiv.org/schemas/atom&quot; term=&quot;cs.DL&quot; scheme=&quot;http://arxiv.org/schemas/atom&quot;/&gt;
    &lt;category term=&quot;cs.DL&quot; scheme=&quot;http://arxiv.org/schemas/atom&quot;/&gt;
  &lt;/entry&gt;
&lt;/feed&gt;
</code></pre>
<p>How can I construct a comma-separate string that contains <em>all</em> values in <code>author/name</code> tags? In the XML above I want to get <code>Pablo Dorta-González, Yolanda Santana-Jiménez</code></p>