title: XmlNodeList xPath to filter out Nodes
body: <pre><code>XmlNodeList list = null;
  list = xmlResult.SelectNodes("/sitecore
                                 /result
                                  /item
                                   [scWebsitePath='"+sitecoreContextItemPath+"'
                                    and scTemplateId='"+templateId+"' 
                                    and scDateCreated &gt; '"+publishedFrom+"' 
                                    and scDateCreated &lt; '"+publishedTo+"']");
  </code></pre>
  
  <p>Above code returns me a list of all "validated" Nodes.
  Is it also possible to have xPath check wheter a path ie. "xxx/yyy/zzz/" is part of a Node for example if the given path is "xxx/yyy/zzz/" and i want the items below that path to be returned:</p>
  
  <ul>
  <li>"xxx/yyy/zzz/abc/def/ghi" &lt;- will be
  valid</li>
  <li>"xxx/yyy/zzz/abc/def/ghi/jkl" &lt;- will
  be valid</li>
  <li>"xxx/yyy/zzz/aaa/aaa/zzz" &lt;- won't be
  valid</li>
  </ul>
  
  <p>I can access the node Path by doing this:</p>
  
  <pre><code>XmlNode thisScPath = node.SelectSingleNode("scPath");
  if (thisScPath == null)
  continue;
  </code></pre>
  
  <p>So i wonder if i can also do something like:</p>
  
  <pre><code>list = xmlResult.SelectNodes("/sitecore
                                 /result
                                  /item[scWebsitePath='"+sitecoreContextItemPath+"'
                                        and scTemplateId='"+templateId+"'
                                        and scDateCreated &gt; '"+publishedFrom+"'
                                        and scDateCreated &lt; '"+publishedTo+"'
                                        and scPath = '"+scPath+"/*']");
  </code></pre>
  
  <p>When deleting the invalid Nodes from the list this will save me alot of stress because of bad performance. I can eventually delete the invalid items using a c# string.IndexOf != -1 statement, but I'd like to do this with xPath if possible. Is this possible?</p>