title: javascript selectNodes on parsed xml
body: <p>How can I use the selectNode() function on a parsed XML message in javascript?</p>
  
  <pre><code>&lt;script&gt;
  var xmlStr = "&lt;tagName&gt;some text here&lt;/tagName&gt;";
  var xmlDoc = (new DOMParser()).parseFromString(xmlStr, "text/xml");
  var nodes = xmlDoc.selectNodes('tagName');
  &lt;/script&gt;
  </code></pre>
  
  <p>I get error for this code:
  <em>Uncaught TypeError: xmlDoc.selectNodes is not a function</em></p>