title: Xpath evaluate count in "[ ]"
body: <p>i have class with the members   -</p>
  
  <pre><code>private Document myDoc;
  XPath xpath = XPathFactory.newInstance().newXPath(); 
  </code></pre>
  
  <p>i try to use <code>evaluate</code> function  - </p>
  
  <pre><code>Object result = xpath.evaluate(expression, this.myDoc,
                  XPathConstants.NODESET);
  </code></pre>
  
  <p>when <code>expression</code> is a <code>string</code> s.t </p>
  
  <pre><code>expression = "inventory/book[" +
                  "count(following-sibling::book/price/text()=14.95)=0 ]"  ;
  </code></pre>
  
  <p>and i get the follow exception  -</p>
  
  <pre><code>java.lang.RuntimeException: Can not convert #BOOLEAN to a NodeList!
  </code></pre>
  
  <p>even when i change <code>XPathConstants.NODESET</code> to <code>XPathConstants.NUMBER</code> i get same exception . thanks in advance .</p>