0
我只是想在這裏解析的RSS提要,我可以用XmlReader如何獲取RSS訂閱源中的非標準項目?
String blogrss = @"http://belvederecollegeac.wordpress.com/feed/";
using (System.Xml.XmlReader reader = System.Xml.XmlReader.Create(blogrss))
{
System.ServiceModel.Syndication.SyndicationFeed feed = System.ServiceModel.Syndication.SyndicationFeed.Load(reader);
foreach (var v in feed.Items)
{
string title = v.Title.Text.Replace("•", " --- ");
string url = v.Id;
string link = "<a href=" + url + ">" + title + "</a>";
Response.Write(link + "<br><br>");
}
做到這一點,但我無法找到XML讀者如何給我描述的節點?
我能得到v.Tite和v.Id(獲取相關鏈接),但包含RSS,因爲這
<description>
<![CDATA[
Photos from the J.C.T. game v Kilkenny College can be viewed at the College website gallery page. A highlights video from the S.C.T. game v Terenure can also be viewed on the video gallery page.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=belvederecollegeac.wordpress.com&blog=41877065&post=92&subd=belvederecollegeac&ref=&feed=1" width="1" height="1" />
]]>
</description>
我feed.Items
收集似乎並不有一個對象連接到這樣的描述節點它稱爲描述?