title: Select Parent Node on the basis of same name child node at same level
body: <p>I need to select "Parent" node only if none of the child tag has value "fail". There can be multiple Child element its very dynamic.</p>
  
  <p><strong>Sample Input:</strong></p>
  
  <pre><code>&lt;Parent&gt;
  &lt;Parent-bro&gt; bro1&lt;/Parent-bro&gt;
  ....
  &lt;Father&gt;
  &lt;Father-bro&gt;...&lt;/Father-bro&gt;
  &lt;Child&gt;pass&lt;/Child&gt;
  &lt;Child&gt;testing&lt;/Child&gt;
  &lt;Child&gt;fail&lt;/Child&gt;
  
  &lt;/Parent&gt;
  </code></pre>
  
  <p><strong>Sample output</strong>
  Blank no node should get selected as one of the child element has value fail.</p>
  
  <p>Incase of single child I was able to select using "Parent[//Father/Child/text()!='fail']".</p>
  
  <p>But now since there can be one child element or 100 child element and i need search if any one of them has value "Fail". Select only if none of the tag contains value "Fail".
  Thanks for your help.</p>