title: selectSingleNode using vbscript
body: <p>Below is the structure of my xml file:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;appSettings&gt;
      &lt;add key="ProductVersion" value="5.5.5"/&gt;
      &lt;add key="LogsDirectory" value="e:\\Logs"/&gt;
    &lt;/appSettings&gt;
  &lt;configuration&gt;
  </code></pre>
  
  <p>I am trying following code to get value of LogsDirectory:</p>
  
  <pre><code>configurationFilePath = "e:\conf.xml"
  Set xmlDoc = CreateObject("MSXML2.DomDocument.6.0")
  xmlDoc.async = false
  Call xmlDoc.load(configurationFilePath)
  
  xpath1 = ".//configuration/appSettings/add[@key='LogsDirectory']/@value"
  LogsDirectory = xmlDoc.selectSingleNode(xpath1)
  </code></pre>
  
  <p>But it is giving error as object required.</p>
  
  <p>Any help highly appreciated.</p>
  
  <p>Thanks</p>