title: Can't load node from .jdf file in Vbscript
body: <p>I'm trying to get a value from a node in a .jdf file.
  It gives us an error</p>
  
  <p><code>object required: 'curNode'</code></p>
  
  <p>in line no. 13 - <code>inputFolder = curNode.getAttribute("Amount")</code></p>
  
  <p>We don't really know what to do... any help please?</p>
  
  <p>Thank you</p>
  
  <pre><code>'creates the msxml object
  Set xmlDoc = CreateObject("Msxml2.DOMDocument.6.0")
  Dim xmlDataPath,retVal
  xmlDataPath = "C:\Users\liatte\Desktop\Aviv Omer Neta\JDFs to Txt\a.jdf"
  
  'load the xml data of the script
  retVal=xmlDoc.load(xmlDataPath)
  
  'get input folder
  Set curNode = xmlDoc.selectSingleNode("//JDF/ResourceLinkPool/ComponentLink")
  Dim inputFolder
  inputFolder = curNode.getAttribute("Amount")
  </code></pre>