2013-02-08 71 views
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&#038;blog=41877065&#038;post=92&#038;subd=belvederecollegeac&#038;ref=&#038;feed=1" width="1" height="1" /> 
]]> 
</description> 

feed.Items收集似乎並不有一個對象連接到這樣的描述節點它稱爲描述?

回答