title: Using data from XML file in HTML Document
body: <p>As the title suggests I would like to be able to use data from a XML file in a HTML page. Let me explain what the page is trying to do in order to help explain what I need help with..</p>
  
  <p>The HTML page when complete will go to the YouTube servers with a search query and retrieve a XML file that is generated from the search with up to date information.
  Then the page will look into the XML file given, and find the <code>&lt;yt:videoid&gt;</code> node, and transfer the string to the HTML file.
  Then the HTML file can use the string (probably in javascript) to make the embed video code.</p>
  
  <p>The resulting page will therefore always have the latest video due to the search query.</p>
  
  <p>So far I have found the link to get the XML file (below) and had a look at the XML
  (Link:  <a href="https://gdata.youtube.com/feeds/api/videos?author=inthegamesroom&amp;orderby=published&amp;prettyprint=true&amp;start-index=1&amp;max-results=1&amp;v=2" rel="nofollow">https://gdata.youtube.com/feeds/api/videos?author=inthegamesroom&amp;orderby=published&amp;prettyprint=true&amp;start-index=1&amp;max-results=1&amp;v=2</a>)</p>
  
  <p>I found out that the information I want is in a node called <code>&lt;yt:videoid&gt;</code> which is under <code>&lt;media:group&gt;</code> which is under <code>&lt;feed&gt;</code></p>
  
  <p>After doing some research online (as I am not a javascript programmer, I only have a basic knowledge, I found that you can use XML DOM to read and adapt XML files from within an HTML page. But the problem with XML DOM code is that it requires the XML file to be hosted on the actual server itself, which it is obviously not - as it's on youtube.</p>
  
  <p>Does anyone know a way I could just read the  data and put it into a javascript variable? I don't necessarily want you to spend ages writing some code, but at least hope you can lead me in the right direction?</p>
  
  <p>Thanks a lot in advanced,</p>
  
  <p>Ant.</p>
  
  <p>PS, Please bear in mind I am not a JS or HTML programmer.. I only know the basics, and if I have done anything wrong in this post please let me know as this is a first for me on stackoverflow.</p>