Skip to content

Instantly share code, notes, and snippets.

@MatthewSteeples
Created June 28, 2013 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MatthewSteeples/5888722 to your computer and use it in GitHub Desktop.
Save MatthewSteeples/5888722 to your computer and use it in GitHub Desktop.
Build 2003 XML reader
var xml = XElement.Load(@"C:\users\matthew\desktop\wmvhigh.xml");
//xml.Element("channel").Elements("item").Dump();
xml.Element("channel").Elements("item")
.Select(a => new
{
Title = a.Element("title").Value,
Url = new Uri(a.Element("enclosure").Attribute("url").Value)
})
.Dump();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment