title: Does the NodeJS xpath library support XPath query expressions?
body: <p>I'm trying to perform some XPath queries using the NodeJS library but can't find any documentation or examples on what I am trying to do.</p>
  
  <p>Basically, I have a node that has multiple children, some of them named "stringProp".  I am trying to grab only stringProp nodes that have a "name" attribute set at "comment".  Is this possible with the xpath library?</p>
  
  <p>Right now my code, which is getting a parse exception, looks like this:</p>
  
  <p><code>var comment = xpath.select("./stringProp/[@name = 'comment']", children[i]);</code></p>
  
  <p>This is trying to emulate a similar namespace operation in the xpath library documentation:</p>
  
  <p><code>var node = xpath.select("//*[local-name(.)='title' and namespace-uri(.)='myns/']", doc)[0]</code></p>
  
  <p>However, the library documentation does not show any similar examples using attributes.</p>