Hi. Thanks for reading.
I'm trying to parse an xml response from YouTube but I'm completely blocked, hehe.
Well, What I've got until now is this:
<%
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/"&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
%>
Ok, from here I don't know how to parse the response.
What I want to do is to save the nodes into variables such as title, date uploaded, rating, etc.
I tried this one http://www.aspmessageboard.com/showthread.php?t=230539 to solve the problem, but I was not able to get every node into variables.
Thanks for your help!