【发布时间】:2013-08-14 23:18:06
【问题描述】:
我想从 XML 中解析 url 属性,并从以下提要链接的列表框中显示图像控件(由 URL 引用的那个)中的图像:http://feeds.bbci.co.uk/news/rss.xml
我的代码是:
var ComingNewsFromUri = from rss in XElement.Parse(e.Result).Descendants("item")
select new NewsItems
{
Title = rss.Element("title").Value,
PubDate = rss.Element("pubDate").Value,
Description = rss.Element("description").Value
};
【问题讨论】:
标签: c#-4.0 xml-parsing linq-to-xml windows-phone