rss2

Create RSS feed in asp.net core 1.0

会有一股神秘感。 提交于 2019-12-30 10:56:53
问题 I am working in Asp.net Core 1.0 MVC 6 I am trying to write a component to provide RSS feeds from my websites. I found this post that suggests that System.ServiceModel.Syndication has yet to be ported to ASP.NET CORE. I am unable to target the full .NET framework. The suggestion is to write as an xml parser. I am however struggling to get my head around everything that might be required. I have built the functionality to get my data into XML but now need to better understand how to allow this

How to add line breaks in RSS feeds?

吃可爱长大的小学妹 提交于 2019-12-18 04:16:28
问题 I'm building my own custom RSS feed in PHP. I want the tag to contain line breaks to make the text more readable. However, I can't seem to figure out how to do it correctly. No matter what I try some RSS reader interprets it incorrectly. Is there some standard best way to add a line-break in and RSS 2.0 feed? I have tried "\n", which works in NetNewsWire on the Mac, but gets ignored by the built-in Safari browser's RSS reader. I have tried <br />, which works in the Safari RSS reader, but

How to extract the full content from a partial content rss

最后都变了- 提交于 2019-12-11 10:59:14
问题 I am working on a PHP project. The goal (in a simple lang) is to read an RSS feed, and get the title, full content, and media (video and/or images) from it, and post it in a wordpress blog. (The customer wants to use some sources that are open for sharing and use them for auto posting in his blog) I successfully could extract the title, content and images or videos and post them in wordpress. However, there are some problems: 1) I can only extract the media if they are included in the RSS. 2)

Create RSS feed in asp.net core 1.0

…衆ロ難τιáo~ 提交于 2019-12-01 09:09:22
I am working in Asp.net Core 1.0 MVC 6 I am trying to write a component to provide RSS feeds from my websites. I found this post that suggests that System.ServiceModel.Syndication has yet to be ported to ASP.NET CORE. I am unable to target the full .NET framework. The suggestion is to write as an xml parser. I am however struggling to get my head around everything that might be required. I have built the functionality to get my data into XML but now need to better understand how to allow this to be called from an IActionResult (or indeed how to generate a link that may be placed on my page). I

Difference between description and content:encoded tags in RSS2

試著忘記壹切 提交于 2019-11-30 14:30:53
问题 What is the difference, if any, between the <description> tag and the <content:encoded> tag in RSS 2.0 format specifications? Is one more important than the other? Should I be using both in my feeds or one will suffice? 回答1: The <description> tag is for the summary of the post, but in plain text only. No markup. You can get around that if you escape the tags or wrap the content in: <![CDATA[ post body goes <strong>here</strong> ]> But you're not really supposed to be doing that. If you want

Difference between description and content:encoded tags in RSS2

你说的曾经没有我的故事 提交于 2019-11-30 07:58:31
What is the difference, if any, between the <description> tag and the <content:encoded> tag in RSS 2.0 format specifications? Is one more important than the other? Should I be using both in my feeds or one will suffice? The <description> tag is for the summary of the post, but in plain text only. No markup. You can get around that if you escape the tags or wrap the content in: <![CDATA[ post body goes <strong>here</strong> ]> But you're not really supposed to be doing that . If you want markup, you're supposed to use <content:encoded> and use the <![CDATA[ and ]> wrappers here. The content

Pagination in feeds like ATOM and RSS?

…衆ロ難τιáo~ 提交于 2019-11-28 20:17:40
Is this even possible? Perhaps? <link rel=“next” type=“application/atom+xml” href=”[//path/page2]”></link> It appears that ATOM allows the following syntax (first Google result for ' ATOM feed next/previous '): <link rel="self" type="application/atom+xml" href="http://www.syfyportal.com/atomFeed.php?page=3"/> <link rel="first" href="http://www.syfyportal.com/atomFeed.php"/> <link rel="next" href="http://www.syfyportal.com/atomFeed.php?page=4"/> <link rel="previous" href="http://www.syfyportal.com/atomFeed.php?page=2"/> <link rel="last" href="http://www.syfyportal.com/atomFeed.php?page=147"/> I

Pagination in feeds like ATOM and RSS?

无人久伴 提交于 2019-11-27 12:50:52
问题 Is this even possible? Perhaps? <link rel=“next” type=“application/atom+xml” href=”[//path/page2]”></link> 回答1: It appears that ATOM allows the following syntax (first Google result for ' ATOM feed next/previous '): <link rel="self" type="application/atom+xml" href="http://www.syfyportal.com/atomFeed.php?page=3"/> <link rel="first" href="http://www.syfyportal.com/atomFeed.php"/> <link rel="next" href="http://www.syfyportal.com/atomFeed.php?page=4"/> <link rel="previous" href="http://www