Skip to content

Instantly share code, notes, and snippets.

@gabbsmo
Created March 3, 2013 17:57
Show Gist options
  • Save gabbsmo/5077281 to your computer and use it in GitHub Desktop.
Save gabbsmo/5077281 to your computer and use it in GitHub Desktop.
var categoryMystery = new XElement("CategorySearch",
new XElement("Mystery"),
new XElement("Movies",
from m in Movies.Elements("Movie")
where m.Elements("Categories").Descendants()
.Contains(new XElement("Category", "Mystery"))
select new XElement("Movie",
new XElement("Title", m.Element("Title").Value))));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment