title: How to pass attribute text as a variable to select a single node in xml using VBScript?
body: <p>I'm trying to select a single node in an xml file using VBscript using the following code </p>
  
  <pre><code>Set node = xmlDoc.selectingSingleNode(".//node()[@name = 'anything']") 
  </code></pre>
  
  <p>This works perfectly if I write what I need to pass as a text.</p>
  
  <p>But I need to pass this <code>'anything'</code> as a variable X</p>
  
  <p>I tried the following but neither is working</p>
  
  <pre><code>xmlDoc.selectingSingleNode(".//node()[@name = X]")
  xmlDoc.selectingSingleNode(".//node()[@name = '&amp;X&amp;']")
  </code></pre>
  
  <p>Any suggestions are appreciated</p>