title: XPath find all matches C# XmlDocument
body: <p>I am trying to figure out how to find all matches of string in a <code>XmlDocument</code>.</p>
  
  <pre><code>XmlNodeList results 
        = document.SelectNodes("Products/Product/fn:matches(.,'" + SearchWord + "')");
  </code></pre>
  
  <p>Im trying to compare the <code>innerText</code> of Product.</p>
  
  <p>The above example don't work though, but I guess my way of using XPath functions are very wrong.</p>