'How to display video from xml file?

Hi am using xml file given below,how can i get videos from xml file?

<Category name="Videos">
   <article articleid="68">
     <videourl>
      <iframe src="http://player.vimeo.com/video/52375409?fullscreen=0" width="500"   height="298" frameborder="0"></iframe>
     </videourl>
    </article>
</Category>

My Code is

XDocument loadedData = XDocument.Load("CountriesXML.xml");

        var data = from query in loadedData.Descendants("Country")
          select new CountryData
          {
             url = (string)query.Element("videourl").Elements("iframe").Single().Attribute("src").Value,
          };
     countryList = data.ToList();

but i got NullReferenceException error



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source