Beispiel #1
0
 /// <summary>
 /// Retrieves a <see cref="RssFeedPafi">RssFeedPafi</see> object using
 /// the url provided as the source of the Feed.
 /// </summary>
 /// <param name="Url">The url to retrieve the RSS feed from, this can
 /// be in the format of http:// and also file://.. (ftp?)</param>
 /// <returns>A <see cref="RssFeedPafi">RssFeedPafi</see> object from the
 /// RSS feed's details.</returns>
 public static RssFeedPafi GetFeed(string Url)
 {
     RssReaderPafi rssReader = new RssReaderPafi();
       return rssReader.Retrieve(Url);
 }
Beispiel #2
0
 /// <summary>
 /// Retrieves a <see cref="RssFeedPafi">RssFeedPafi</see> object using
 /// the url provided as the source of the Feed.
 /// </summary>
 /// <param name="Url">The url to retrieve the RSS feed from, this can
 /// be in the format of http:// and also file://.. (ftp?)</param>
 /// <param name="RdfFormat">If this is set to true, then the XML document
 /// is parsed slightly different, to cater sites with RDF feeds (such as
 /// slashdot.org and register.com). The whole RDF format is not supported,
 /// but those items in RSS which have a corresponding RDF property, such
 /// as description,title for the channel, and title,description for each
 /// item, are matched.</param>
 /// <returns>A <see cref="RssFeedPafi">RssFeedPafi</see> object from the
 /// RSS feed's details.</returns>
 public static RssFeedPafi GetFeed(string Url, bool RdfFormat)
 {
     RssReaderPafi rssReader = new RssReaderPafi();
       rssReader.RdfMode = RdfFormat;
       return rssReader.Retrieve(Url);
 }