title: Why am I constantly getting object errors?
body: <p>I have cut and paste this example from <a href="http://devguru.org/Technologies/xmldom/quickref/node_selectSingleNode.html" rel="nofollow noreferrer">http://devguru.org/Technologies/xmldom/quickref/node_selectSingleNode.html</a></p>
  
  <p>and I can't get it to work. </p>
  
  <p>I keep getting object errors like this:</p>
  
  <p>Microsoft VBScript runtime (0x800A01A8)
  Object required</p>
  
  <p>This is the code and xml file I am using</p>
  
  <pre><code>    &lt;%
      option explicit
  
      Dim objXMLDoc
  
      Set objXMLDoc = CreateObject("Microsoft.XMLDOM")
      objXMLDoc.async = False
      objXMLDoc.load(Server.MapPath("vocabulary.xml"))
  
      Dim Node
  
  Set Node = objXMLDoc.documentElement.selectSingleNode("label")
  Response.write Node.text
  
  %&gt;
  </code></pre>
  
  <p>xml file</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
      &lt;labels&gt;
          &lt;label&gt;Some label&lt;/label&gt;
      &lt;/labels&gt;
  </code></pre>