I am trying to grab all the <entry> tags from this site. It will load just fine into an XDocument but I cannot seem to grab any of the <entry> elements. Here is the code I have:
XDocument netflixPage = new XDocument();
netflixPage = XDocument.Load("http://odata.netflix.com/Catalog/Titles");
foreach (XElement xe in netflixPage.Descendants("entry").ToList())
{
string movieInfo = xe.Value;
}
Your code attempts to retrieve
entryelements in thenamespace, but the document containsentryelements in thehttp://www.w3.org/2005/Atomnamespace: