title: XPath NodeSet in Java
body: <p>I have this code in eclipse</p>
  
  <pre><code>NodeSet nodes = (NodeSet) xPath.evaluate(expression,inputSource, XPathConstants.NODESET);
  </code></pre>
  
  <p>and its giving me compile time error on NodeSet. </p>
  
  <p>These are the stuff that I have imported. Can you tell me why it's doing this?</p>
  
  <pre><code>import javax.xml.xpath.*;
  import org.xml.sax.InputSource;
  import java.io.File;
  import java.io.FileInputStream;
  import java.io.FileNotFoundException;
  import java.util.*;
  </code></pre>