title: How to check if node containing certain text exists in XML DOM?
body: <p>My XML is as below:</p>
  
  <p><img src="https://i.stack.imgur.com/4g8WM.png" alt="enter image description here"></p>
  
  <p>I need to check whether <code>"anil"</code> is in the DOM or not without using loop. Is it possible to do this in one line?</p>
  
  <p>This is the code I tried:</p>
  
  <pre><code>If not(xmldom.selectsinglenode("//xml/xmlfile/name/"+xname)is nothing) then
      .....
  end if
  </code></pre>
  
  <p>Here <code>xname</code> will be the text (eg <code>anil</code> or <code>amith</code>).</p>