Questions tagged [rss]

Really Simple Syndication (RSS) is a family of web feed formats used to publish frequently updated works—such as blog entries, news headlines, audio, and video—in a standardized format.

Really Simple Syndication (RSS) is a family of web content syndication formats used to publish frequently updated works — such as blog entries, news headlines, audio, and video — in a standardized format.

RSS is a dialect of XML. All RSS files must conform to the XML 1.0 specification, as published on the World Wide Web Consortium (W3C) website.

Useful Resources:

7700 questions
37
votes
0 answers

Real alternative for Google Feed API

I find myself working with feeds (rss, atom, json, etc) pretty often, and most of the time it's mixing these feeds together for a site, and it's nothing but pain trying to build your code to get every condition right, and it's a waste of time, money…
Christian
  • 927
  • 2
  • 13
  • 22
34
votes
8 answers

Policy for polling RSS feeds?

I have an application that polls several RSS sources on the web. What is the etiquette when polling other's web servers. How frequently to poll, etc? What are the best practices?
flybywire
  • 261,858
  • 191
  • 397
  • 503
30
votes
2 answers

How to replace the text of a node using DOMDocument

This is my code that loads an existing XML file or string into a DOMDocument object: $doc = new DOMDocument(); $doc->formatOutput = true; // the content actually comes from an external file $doc->loadXML('
Salman A
  • 262,204
  • 82
  • 430
  • 521
30
votes
6 answers

Images in RSS feed

Whenever I see images in an RSS feed, they are embedded in CDATA, rather than surrounded by tags. In my feed, I would like the images to show up without doing that. Whether in the browser, or a feed reader (Bloglines) or through FeedBurner, the…
mmcglynn
  • 7,668
  • 16
  • 52
  • 76
30
votes
6 answers

java library for reading RSS and ATOM feeds

I am looking for libraries which can read RSS / ATOM feeds in my J2EE application (based on JBoss Seam). Is Rome the only application there for reading feeds? I am assuming the Seam RSS integration is only for generating RSS feeds and not for…
Sam
  • 8,387
  • 19
  • 62
  • 97
29
votes
9 answers

How do I add an image to an item in RSS 2.0?

Is there a way to send only an Image with a link and some alt text for each item in an RSS feed? I looked at the enclosure tag but this is only for videos and music.
sanders
  • 10,794
  • 27
  • 85
  • 127
29
votes
7 answers

Parsing Atom & RSS in Ruby/Rails?

I'm looking for something that will let me parse Atom and RSS in Ruby and Rails. I've looked at the standard RSS library, but is there one library that will auto-detect whatever type of feed it is and parse it for me?
aronchick
  • 6,786
  • 9
  • 48
  • 75
28
votes
5 answers

Node.js RSS module

Is there a way to read from an RSS feed using Node.js, possibly, in Real-time? Thanks
donald
  • 23,587
  • 42
  • 142
  • 223
28
votes
2 answers

How do I get my blogdown blog on R-Bloggers?

I generate my blog using blogdown, but when I have tried to submit it to R-Bloggers it is not accepted because my feed returns the following error: This XML document is invalid, likely due to invalid characters. XML error: Undeclared entity error…
nathaneastwood
  • 3,664
  • 24
  • 41
28
votes
2 answers

'OR' operator in XPath predicate?

What is the XPath expression to select elements with type="application/rss+xml" OR type="application/atom+xml" (RSS and Atom feeds) link[@rel='alternate'][@type='application/rss+xml'] selects RSS…
abernier
  • 27,030
  • 20
  • 83
  • 114
28
votes
1 answer

How to write an RSS feed with Java?

I'm using Java, and need to generate a simple, standards-compliant RSS feed. How can I go about this?
Dónal
  • 185,044
  • 174
  • 569
  • 824
27
votes
3 answers

Dart/Flutter: Http request raises XMLHttpRequest error

I am trying to make an RSS reader with flutter but the program raises the XMLHttpRequest error. In my test I used web (Chrome) as my target platform. Thank you for your help. Future fetchFeed() async { try { final response = await…
Ph.lpp
  • 484
  • 1
  • 4
  • 17
27
votes
6 answers

Retrieving RSS feed with tag

I have the following snippet of code: function getFeed($feed_url) { $content = file_get_contents($feed_url); $x = new SimpleXmlElement($content); echo "
    "; foreach($x->channel->item as $entry) { echo "
  • kylex
    • 14,178
    • 33
    • 114
    • 175
26
votes
2 answers

Extending RSS format with more fields?

I have a website that I need to create an RSS feed for. Is there a standard format for adding custom fields to an RSS feed? I would like to add a "location" element to my RSS feeds for example. I have some partners that would like to consume the…
TruMan1
  • 33,665
  • 59
  • 184
  • 335
26
votes
6 answers

Google Chrome rendering XML as text for RSS feed

I have this script to generate an XML file for an RSS feed. Works great in every browser except Chrome. Chrome just renders the XML as text. Something to do with header("Content-Type: application/rss+xml; charset=ISO-8859-1"); possibly? This is…
Scott
  • 823
  • 4
  • 11
  • 21