title: How do I reach the second child node of an element XML in vbscript?
body: <p>After spending many hours on the internet I was not able to get this to work and need some help.</p>
  
  <p>XML:</p>
  
  <p><a href="https://i.stack.imgur.com/FK4uE.png" rel="nofollow noreferrer">xml snippet highlighting NoteSynopsis</a></p>
  
  <p>CODE:</p>
  
  <pre><code>set xmlDoc  = SERVER.CREATEOBJECT("MSXML2.DomDocument.6.0")
  xmlDoc.async = False              xmlDoc.Load("D:\GVPApplications\TechSupportCreateIncident\CreateIncidentRequest.xml")    
  xmlDoc.setProperty "NewParser","true"               
  
  set Root = xmlDoc.documentElement
  
  set NodeList1 = Root.getElementsByTagName("IncidentNote")
  
                   For Each Elem in NodeList1
                       if Elem.firstChild.nodename = "Note" then
                            Elem.firstChild.text = Notes
                       end if
  
                   Next
  </code></pre>
  
  <p>ISSUE:
  As highlighted in the image XML , I need to be able to read "NoteSynopsis" element and its value. As simple as this seems I have not been able to find a solution to this. If this was the last child no issue, I would do a Elem.LastChild.nodename, but this isn't!</p>