title: How to fetch the child node with given criteria in javascript DOM api?
body: <p>the xml file is like this:</p>
  
  <pre><code>&lt;products&gt;
    &lt;product&gt;
     &lt;id&gt;1&lt;/id&gt;
     &lt;name&gt;pen&lt;/name&gt;
    &lt;/product&gt;
    &lt;product&gt;
     &lt;id&gt;2&lt;/id&gt;
     &lt;name&gt;pencil&lt;/name&gt;
    &lt;/product&gt;
  &lt;/products&gt;
  &lt;employees&gt;
    &lt;employee&gt;
     &lt;name&gt;Jack&lt;/name&gt;
    &lt;employee&gt;
    &lt;employee&gt;
     &lt;name&gt;Mark&lt;/name&gt;
    &lt;employee&gt;
  &lt;/employees&gt;
  </code></pre>
  
  <p>Can I only get the <code>&lt;name&gt;</code> nodes which are the childen of <code>&lt;product&gt;</code>? Is there well adapted  <code>xpath</code> api in javascript dom?</p>