Quantcast
Channel: Parsing Youtube video feed XML - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Parsing Youtube video feed XML

$
0
0

So I am trying to make a script that gets the most recent video uploaded to my youtube channel. here is i what I have so far...

<body onLoad="loadVids()"><script>        function loadXMLDoc(channel)        {            if (window.XMLHttpRequest)              {              xhttp=new XMLHttpRequest();              }            else              {              xhttp=new ActiveXObject("Microsoft.XMLHTTP");              }            xhttp.open("GET","https://gdata.youtube.com/feeds/api/users/"+channel+"/uploads/",false);            xhttp.send();            return xhttp.responseXML;        }        function loadVids() {            var xml = loadXMLDoc("CHANNELNAME");        }</script>

Now that I have loaded the XML how do I get each video uploaded?

Thanks.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images