How to test whether a node contains particular string or character as its text value?
<p>How to test whether a node contains particular string or character using C# code.</p>

<p>example:</p>

<pre><code>&lt;abc&gt;
  &lt;foo&gt;data testing&lt;/foo&gt;
  &lt;foo&gt;test data&lt;/foo&gt;
  &lt;bar&gt;data value&lt;/bar&gt;
&lt;/abc&gt;
</code></pre>

<p>Now I need to test the particular node value has the string "testing" ?</p>

<p>The output would be "foo[1]"</p>
