Posted here with no answer:
http://stackoverflow.com/questions/1...-serverxmlhttp

So posting here as well...

If I use the following code in Classic ASP I can get at the data in the Vimeo XML:

Code:
<%
vurl = "http://vimeo.com/api/v2/video/11153565.xml"
Set http = Server.CreateObject("msxml2.ServerXMLHTTP")
http.Open "GET", vurl, False
http.Send

Set dom = http.responseXML

Set items = dom.getElementsByTagName("video")
For Each item In items

    Set id = item.getElementsByTagName("title")
    If NOT (id IS Nothing) Then 
        var_id = id(0).Text
    End If

    response.write "<hr>var_id: "&var_id&"</hr>"

Next
%>
The code works fine.

If I do the same with a Youtube feed:

Code:
<%
vurl = "http://gdata.youtube.com/feeds/api/videos/9TN3VtWwks4"
Set http = Server.CreateObject("msxml2.ServerXMLHTTP")
http.Open "GET", vurl, False
http.Send

Set dom = http.responseXML

Set items = dom.getElementsByTagName("entry")

For Each item In items

    Set id = item.getElementsByTagName("id")
    If NOT (id IS Nothing) Then 
            var_id = id(0).Text
    End If

    response.write "<hr>var_id: "&var_id&"</hr>"

Next
%>
I get no output.

The problem seems to be that the code doesn't recognise that the Youtube URL is pointing to XML.

Because if I replace the above with a link to a .xml file, like:

http://example.com/youtube.xml"

Then it picks up the variable in the XML.

I wondered if there is any way around this?

Any advice much appreciated.

Thanks