title: Node.js puppeteer - Downloading/Accessing a xml file and process the content
body: <p>Node.js puppeteer - How do I download, access and process a xml file and the content in puppeteer?</p>
  
  <p>When clicking on a link like:</p>
  
  <pre><code>await page.evaluate(() =&gt; {
      document.querySelector('#datagrid &gt; div &gt; a:nth-child(2)').click();
  });
  </code></pre>
  
  <p>... I can download a xml file looking like this:    </p>
  
  <p>XML file:</p>
  
  <pre><code>&lt;table&gt;
      &lt;row&gt;
          &lt;column&gt;Titel01&lt;/column&gt;
          &lt;column&gt;Titel02&lt;/column&gt;
          &lt;column&gt;Titel03&lt;/column&gt;
          &lt;column&gt;Titel04&lt;/column&gt;
          &lt;column&gt;Titel05&lt;/column&gt;
          &lt;column&gt;Titel06&lt;/column&gt;
          &lt;column&gt;Titel07&lt;/column&gt;
          &lt;column&gt;Titel08&lt;/column&gt;
          &lt;column&gt;Titel09&lt;/column&gt;
          &lt;column&gt;Titel10&lt;/column&gt;
          &lt;column&gt;Titel11&lt;/column&gt;
          &lt;column&gt;Titel12&lt;/column&gt;
          &lt;column&gt;Titel13&lt;/column&gt;
          &lt;column&gt;Titel14&lt;/column&gt;
          &lt;column&gt;Titel15&lt;/column&gt;
          &lt;column&gt;Titel16&lt;/column&gt;
      &lt;/row&gt;
      &lt;row&gt;
          &lt;column&gt;Value01&lt;/column&gt;
          &lt;column/&gt;
          &lt;column&gt;Value03&lt;/column&gt;
          &lt;column&gt;Value04&lt;/column&gt;
          &lt;column&gt;Value05&lt;/column&gt;
          &lt;column&gt;Value06&lt;/column&gt;
          &lt;column&gt;Value07&lt;/column&gt;
          &lt;column&gt;Value08&lt;/column&gt;
          &lt;column&gt;Value09&lt;/column&gt;
          &lt;column&gt;Value10&lt;/column&gt;
          &lt;column&gt;Value11&lt;/column&gt;
          &lt;column&gt;Value12&lt;/column&gt;
          &lt;column&gt;Value13&lt;/column&gt;
          &lt;column&gt;Value14&lt;/column&gt;
          &lt;column&gt;Value15&lt;/column&gt;
          &lt;column&gt;Value16&lt;/column&gt;
      &lt;/row&gt;
      ... // starting possible more rows
      &lt;row&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column/&gt;
          &lt;column&gt;Value15B&lt;/column&gt;
          &lt;column&gt;Value16B&lt;/column&gt;
      &lt;/row&gt;
      ... // possible 
  &lt;/table&gt;  
  </code></pre>
  
  <p>How can I access the values and store it in variables to further process it in puppeteer?    </p>