LINQ in Action roller

Linq2XML: getting feed info with posts in a single query

Currently I have two queries to extract the neccessary information from the RSS feed, the first one retrieves the feed info and the second one gets the posts: Code Snippet var feedInfo = from channel in rss.Descendants("channel") select new { Title = channel.Element("title").Value, Link = channel.Element("link").Value }; var items = from item in rss.Descendants("item") select new { Title = item.Element("title").Value, Link = item.Element("link").Value }; Is there any way that I can use a single query Read More...
Published Sunday, April 27, 2008 2:45 AM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication