Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 在Windows Phone中使用RSS源_Xml_Windows Phone 7_Data Binding_Rss - Fatal编程技术网

Xml 在Windows Phone中使用RSS源

Xml 在Windows Phone中使用RSS源,xml,windows-phone-7,data-binding,rss,Xml,Windows Phone 7,Data Binding,Rss,大家好,我正在开发一个在Windows Phone中显示Rss提要数据的应用程序 例如,我有一些Rss提要,如 从这个Rss提要中,我喜欢在我的windows Phone应用程序中显示数据 问题是当我浏览这些链接时,我得到了一些Xml数据。我不知道如何在Windows phone应用程序中使用Xml数据 请给我一些建议的…谢谢你查看课程 下面是代码示例 HttpClient client = new HttpClient(); String str = await client.GetStrin

大家好,我正在开发一个在Windows Phone中显示Rss提要数据的应用程序

例如,我有一些Rss提要,如

从这个Rss提要中,我喜欢在我的windows Phone应用程序中显示数据

问题是当我浏览这些链接时,我得到了一些Xml数据。我不知道如何在Windows phone应用程序中使用Xml数据

请给我一些建议的…谢谢你查看课程 下面是代码示例

HttpClient client = new HttpClient();
String str = await client.GetStringAsync(new Uri("http://yourwebsite.com/test.xml"));
SyndicationFeed feed = new SyndicationFeed();
feed.Load(str);

foreach (SyndicationItem item in feed.Items)
{
  // Extract the information from the SyndicationItem object ....


}