title: Javascript and XPath: not loading all matches of tag
body: <p>I'm creating a XML template and then I will load into my JS code. I'm having trouble loading all instances of a tag. In this example, <code>&lt;section&gt;</code>:</p>
  
  <pre><code>let xmltemplate = `&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;sheet&gt;
      &lt;meta&gt;
      &lt;version&gt;0&lt;/version&gt;
      &lt;author&gt;&lt;/author&gt;
      &lt;contact&gt;&lt;/contact&gt;
      &lt;notes&gt;&lt;/notes&gt;
      &lt;released&gt;&lt;/released&gt;
      &lt;updated&gt;&lt;/updated&gt;
      &lt;/meta&gt;
      &lt;section name="section 1"&gt;&lt;/section&gt;
      &lt;section name="section 2"&gt;&lt;/section&gt;
  &lt;/sheet&gt;`;
  
  
  var xmlDoc = (new DOMParser).parseFromString(xmltemplate, 'text/xml');
  let nodes = xmlDoc.evaluate("//section", xmlDoc, null, XPathResult.ANY_TYPE, null);
  var result = nodes,iterateNext();
  console.log(result);
  </code></pre>
  
  <p>The console just shows the first section, not both:</p>
  
  <pre><code>&lt;section name="section 1"/&gt;
  </code></pre>
  
  <p>What am I missing here?</p>
  
  <p>Thanks!</p>