title: XPath to select all nodes in document with specified name in java
body: <h2>Sample XML</h2>
  
  <pre><code>&lt;Games&gt;
      &lt;Indoor&gt;
          &lt;TT&gt;&lt;/TT&gt;
          &lt;Chess&gt;&lt;/chess&gt;
           &lt;cricket&gt;asd&lt;/cricket&gt;
          &lt;ComputerGame&gt;
                    &lt;cricket&gt;asd&lt;/cricket&gt;
          &lt;/ComputerGame&gt;
      &lt;/Indore&gt;
      &lt;Outdoor&gt;
           &lt;Football&gt;&lt;/Football&gt;
           &lt;cricket&gt;asd&lt;/cricket&gt;
      &lt;/outdoor&gt;
  &lt;/Games&gt;
  </code></pre>
  
  <p>I want to select all the node with node name cricket.
  for this I am : </p>
  
  <pre><code>NodeList nodeList= (NodeList)xpath.compile("//cricket").evaluate(xmlDocument,XPathConstants.NODESET);
  </code></pre>
  
  <p>But this code doesnt select any cricket node. PLEASE SUGGEST</p>