<title> some data </title> <description> some desc </description> <link>http://www.****.com</link> <pubDate>Fri, 21 Jun 2013 19:30:48</pubDate> <guid>ttp://www.****.com</guid> <enclosure url= "http://www.***.com//images/332010.jpg " length="5000" type="image/jpge"/>
XmlDocument RSSXml = await XmlDocument.LoadFromUriAsync(new Uri(uri)); XmlNodeList xmlUrl = RSSXml.GetElementsByTagName("enclosure"); XmlNodeList RSSNodeList = RSSXml.SelectNodes("rss/channel/item"); StringBuilder sb = new StringBuilder(); foreach (var RSSNode in RSSNodeList) { var RSSSubNode = RSSNode.SelectSingleNode("title"); string title = RSSSubNode != null ? RSSSubNode.InnerText : ""; RSSSubNode = RSSNode.SelectSingleNode("link"); string link = RSSSubNode != null ? RSSSubNode.InnerText : ""; RSSSubNode = RSSNode.SelectSingleNode("enclosure"); string desc = RSSSubNode != null ? RSSSubNode.InnerText : ""; } Label.Text = sb.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)