title: Parse Server.XMLHTTP YouTube response with ASP Classic
body: <p>I'm trying to parse an xml response from YouTube but I'm completely blocked, hehe.</p>
  
  <p>Well, What I've got until now is this:</p>
  
  <pre><code>&lt;%
  
      Option Explicit
      Response.Buffer = True
  
      Dim videoVimeo, videoYoutube
          videoVimeo = "http://vimeo.com/5866977"
          videoYoutube = "http://www.youtube.com/watch?v=d8nxjUlbKJA"
  
  '------------------------------------------------------------------
  '----------------------- YouTube request --------------------------
  '------------------------------------------------------------------
          ' replacing the url to get the ID from the video
          videoYoutube = Replace(videoYoutube,"http://www.youtube.com/watch?v=","")
  
          ' pasting the ID to the api URL provided from YouTube
          videoYoutube = "http://gdata.youtube.com/feeds/api/videos/"&amp;videoYoutube
  
      Dim xml
          set xml = Server.CreateObject("Microsoft.XMLHTTP")
          set xml = Server.CreateObject("MSXML2.ServerXMLHTTP")
  
          xml.Open "GET", videoYoutube, False
  
          On Error Resume Next
  
          xml.Send
  
      Dim docXml
          Set docXml = Server.CreateObject("msxml2.DOMDocument")
              docXml.loadxml(xml.ResponseText)
  
      Set xml = nothing
  
  %&gt;
  </code></pre>
  
  <p>Ok, from here I don't know how to parse the response.</p>
  
  <p><strong>What I want to do is to save the nodes into variables such as title, date uploaded, rating, etc.</strong></p>
  
  <p>I tried this one <a href="http://www.aspmessageboard.com/showthread.php?t=230539" rel="nofollow noreferrer">http://www.aspmessageboard.com/showthread.php?t=230539</a> to solve the problem, but I was not able to get every node into variables.</p>
  
  <p>Thanks for your help!</p>