<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Comment Feed for Parsing a RDF RSS Feed (TechOff on Channel 9)</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/forums/techoff/445679-parsing-a-rdf-rss-feed/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Comment Feed for Parsing a RDF RSS Feed (TechOff on Channel 9)</title><link>http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/</link></image><description>Parsing a RDF RSS Feed</description><link>http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/</link><language>en-us</language><pubDate>Sun, 30 Nov 2008 23:05:13 GMT</pubDate><lastBuildDate>Sun, 30 Nov 2008 23:05:13 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>Re: Parsing a RDF RSS Feed</title><description>Did you try the &lt;a href="http://www.codeplex.com/ASPNETRSSToolkit"&gt;ASP.NET RSS Toolkit&lt;/a&gt;?</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/?CommentID=446192</link><pubDate>Sun, 30 Nov 2008 23:05:12 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/?CommentID=446192</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/446192/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Did you try the ASP.NET RSS Toolkit?</evnet:previewtext><dc:creator>Joe Chung</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/446192/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Re: Re: Re: Parsing a RDF RSS Feed</title><description>Because the first child is '&amp;lt;?xml version="1.0" encoding="ISO-8859-1"?&amp;gt;'&lt;BR&gt;&lt;BR&gt;Try this &lt;BR&gt;&lt;BR&gt;[code language="csharp"]&lt;BR&gt;XDocument doc = XDocument.Load("http://sanantonio.craigslist.org/sys/index.rss");&lt;BR&gt;XNamespace rdf = "http://purl.org/rss/1.0/";&lt;BR&gt;foreach (var node in doc.Root.Elements(rdf + "channel"))&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(node.Name);&lt;BR&gt;}[/code]</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/?CommentID=445903</link><pubDate>Sat, 29 Nov 2008 16:32:39 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/?CommentID=445903</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/445903/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Because the first child is '&amp;lt;?xml version="1.0" encoding="ISO-8859-1"?&amp;gt;'Try this [code language="csharp"]XDocument doc = XDocument.Load("http://sanantonio.craigslist.org/sys/index.rss");XNamespace rdf = "http://purl.org/rss/1.0/";foreach (var node in doc.Root.Elements(rdf +&amp;#8230;</evnet:previewtext><dc:creator>PerfectPhase</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/445903/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Re: Re: Parsing a RDF RSS Feed</title><description>Cupiditas, there are no nodes in FirstChild ChildNodes though.&lt;br&gt;&lt;br&gt;This rss document is not a normal one...&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/?CommentID=445898</link><pubDate>Sat, 29 Nov 2008 14:43:30 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/?CommentID=445898</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/445898/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Cupiditas, there are no nodes in FirstChild ChildNodes though.This rss document is not a normal one...</evnet:previewtext><dc:creator>VB Man</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/445898/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Re: Parsing a RDF RSS Feed</title><description>&lt;p&gt;Looks valid to me. Internet Explorer picks it up fine.&lt;/p&gt;
&lt;p&gt;You could always do this:&lt;/p&gt;
&lt;pre&gt;XmlDocument doc = new XmlDocument();
doc.Load(rssUrl);

foreach(XmlNode node in doc.FirstChild.ChildNodes)
{
    if(node.Name == "channel")
    {
        // etc: I'll leave the rest up to your imagination
    }
}
&lt;/pre&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/?CommentID=445893</link><pubDate>Sat, 29 Nov 2008 12:55:16 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/?CommentID=445893</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/445893/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>Looks valid to me. Internet Explorer picks it up fine.
You could always do this:
XmlDocument doc = new XmlDocument();
doc.Load(rssUrl);

foreach(XmlNode node in doc.FirstChild.ChildNodes)
{
    if(node.Name == "channel")
    {
        // etc: I'll leave the rest up to your imagination
    }
}
</evnet:previewtext><dc:creator>Christopher Hawkins</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/445893/Trackback.aspx</trackback:ping></item><item><title>Re: Re: Parsing a RDF RSS Feed</title><description>I looked at third party controls to do the job but none will suffice. Is the file I'm trying to parse even valid?&lt;br&gt;</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/?CommentID=445800</link><pubDate>Fri, 28 Nov 2008 16:08:47 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/?CommentID=445800</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/445800/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>I looked at third party controls to do the job but none will suffice. Is the file I'm trying to parse even valid?</evnet:previewtext><dc:creator>VB Man</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/445800/Trackback.aspx</trackback:ping></item><item><title>Re: Parsing a RDF RSS Feed</title><description>There's no built in class (unless you consider the XmlReader et al to be helpful here) but there's libraries on Codeplex and the like.</description><comments></comments><link>http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/?CommentID=445694</link><pubDate>Fri, 28 Nov 2008 06:09:36 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/TechOff/445679-Parsing-a-RDF-RSS-Feed/?CommentID=445694</guid><evnet:views>0</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/445694/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>There's no built in class (unless you consider the XmlReader et al to be helpful here) but there's libraries on Codeplex and the like.</evnet:previewtext><dc:creator>Christopher Hawkins</dc:creator><slash:comments>0</slash:comments><wfw:commentRss></wfw:commentRss><trackback:ping>http://channel9.msdn.com/445694/Trackback.aspx</trackback:ping></item></channel></rss>