syndication

Creating an RSS feed in ASP.NET 3.5

我的未来我决定 提交于 2019-12-03 05:36:55
How would you create an RSS feed in ASP.NET 3.5 using C#? What framework pieces would help in making the publishing of an RSS or Atom feed easier for the .NET developer? Are there any extra features in .NET 4 to make this task easier than in 3.5? Nick Craver There's a new namespace for this in 3.5 called System.ServiceModel.Syndication . Kevin Miller has a great writeup on this , not a whole lot too it with the new namespace, check out the article, no need to repost here, example code is much easier to look at in my opinion. user1826683 public void BindData() { StringWriter sw = new

How to display content of one site in another using PHP?

女生的网名这么多〃 提交于 2019-11-29 15:20:13
I'm trying to show contents of two websites in one another , someone suggest me to use RSS reader but my question is : is there anything else i could try to show the contents , beside using rss !? i thought i can connect to the database of another website , but that didnt work / thanks in advance some of web hosting has disabled "readfile" function. But you can use "file_get_contents" function. $home = file_get_contents('example.com'); echo $home; Gordon Any PHP function that can fetch remote URLs can help you with that. This can be as simple as doing readfile('http://example.com'); // outputs

Problems Reading RSS with C# and .net 3.5

China☆狼群 提交于 2019-11-28 17:58:16
I have been attempting to write some routines to read RSS and ATOM feeds using the new routines available in System.ServiceModel.Syndication, but unfortunately the Rss20FeedFormatter bombs out on about half the feeds I try with the following exception: An error was encountered when parsing a DateTime value in the XML. This seems to occur whenever the RSS feed expresses the publish date in the following format: Thu, 16 Oct 08 14:23:26 -0700 If the feed expresses the publish date as GMT, things go fine: Thu, 16 Oct 08 21:23:26 GMT If there's some way to work around this with XMLReaderSettings, I

How to display content of one site in another using PHP?

百般思念 提交于 2019-11-28 08:50:05
问题 I'm trying to show contents of two websites in one another , someone suggest me to use RSS reader but my question is : is there anything else i could try to show the contents , beside using rss !? i thought i can connect to the database of another website , but that didnt work / thanks in advance 回答1: some of web hosting has disabled "readfile" function. But you can use "file_get_contents" function. $home = file_get_contents('example.com'); echo $home; 回答2: Any PHP function that can fetch

Problems Reading RSS with C# and .net 3.5

孤人 提交于 2019-11-27 10:57:16
问题 I have been attempting to write some routines to read RSS and ATOM feeds using the new routines available in System.ServiceModel.Syndication, but unfortunately the Rss20FeedFormatter bombs out on about half the feeds I try with the following exception: An error was encountered when parsing a DateTime value in the XML. This seems to occur whenever the RSS feed expresses the publish date in the following format: Thu, 16 Oct 08 14:23:26 -0700 If the feed expresses the publish date as GMT, things

RSS feed: how to recommend an update interval?

青春壹個敷衍的年華 提交于 2019-11-27 06:52:28
问题 When publishing an RSS feed, is there some attribute in the XML that can be used to recommend the update interval/frequency? And if its not part of the standard, is there some generally recognised way? 回答1: The specification here http://www.rssboard.org/rss-specification#requiredChannelElements has these optional parameters specified for the channel element: These to tell clients when they don't need to update.. skipHours - A hint for aggregators telling them which hours they can skip. This