fbpx
Wikipedia

RSS enclosure

RSS enclosures are a way of attaching multimedia content to RSS feeds with the purpose of allowing that content to be prefetched.[1] Enclosures provide the URL of a file associated with an entry, such as an MP3 file to a music recommendation or a photo to a diary entry. Unlike e-mail attachments, enclosures are merely hyperlinks to files. The actual file data is not embedded into the feed (unless a data URL is used). Support and implementation among aggregators varies: if the software understands the specified file format, it may automatically download and display the content, otherwise provide a link to it or silently ignore it.

The addition of enclosures to RSS, as first implemented by Dave Winer in late 2000 [1], was an important prerequisite for the emergence of podcasting, perhaps the most common use of the feature as of 2012. In podcasts and related technologies enclosures are not merely attachments to entries, but provide the main content of a feed.

Syntax edit

In RSS 2.0, the syntax for the <enclosure> tag, an optional child of the <item> element, is as follows:

<enclosure url="http://example.com/file.mp3" length="123456789" type="audio/mpeg" /> 

where the value of the url attribute is a URL of a file, length is its size in bytes, and type its mime type.

It is recommended that only one <enclosure> element is included per <item>.[2]

Prefetching edit

The RSS <enclosure> has similarities to:

  • the SMIL <prefetch> element,
  • the HTML <link> element with rel="prefetch".[2]
  • the HTTP Link header with rel="prefetch". (See RFC 2068 section 19.6.2.4.)
  • the Atom <link> element with rel="enclosure"

See also edit

References edit

  1. ^ "RSS Enclosures Use Case". Rssboard.org. Retrieved 3 October 2023.
  2. ^ "RSS Best Practices Profile". Rssboard.org. Retrieved 1 October 2017.

External links edit

  • The <enclosure> tag in the RSS 2.0 specification
  • mod_enclosure - Enclosures in RSS 1.x
  • Enclosure intended use case


enclosure, this, article, needs, additional, citations, verification, please, help, improve, this, article, adding, citations, reliable, sources, unsourced, material, challenged, removed, find, sources, news, newspapers, books, scholar, jstor, september, 2017,. This article needs additional citations for verification Please help improve this article by adding citations to reliable sources Unsourced material may be challenged and removed Find sources RSS enclosure news newspapers books scholar JSTOR September 2017 Learn how and when to remove this message RSS enclosures are a way of attaching multimedia content to RSS feeds with the purpose of allowing that content to be prefetched 1 Enclosures provide the URL of a file associated with an entry such as an MP3 file to a music recommendation or a photo to a diary entry Unlike e mail attachments enclosures are merely hyperlinks to files The actual file data is not embedded into the feed unless a data URL is used Support and implementation among aggregators varies if the software understands the specified file format it may automatically download and display the content otherwise provide a link to it or silently ignore it The addition of enclosures to RSS as first implemented by Dave Winer in late 2000 1 was an important prerequisite for the emergence of podcasting perhaps the most common use of the feature as of 2012 update In podcasts and related technologies enclosures are not merely attachments to entries but provide the main content of a feed Contents 1 Syntax 2 Prefetching 3 See also 4 References 5 External linksSyntax editIn RSS 2 0 the syntax for the lt enclosure gt tag an optional child of the lt item gt element is as follows lt enclosure url http example com file mp3 length 123456789 type audio mpeg gt where the value of the url attribute is a URL of a file length is its size in bytes and type its mime type It is recommended that only one lt enclosure gt element is included per lt item gt 2 Prefetching editMain article Link prefetching The RSS lt enclosure gt has similarities to the SMIL lt prefetch gt element the HTML lt link gt element with rel prefetch 2 the HTTP Link header with rel prefetch See RFC 2068 section 19 6 2 4 the Atom lt link gt element with rel enclosure See also editBroadcatching Internet television Podcast Photofeed VlogReferences edit RSS Enclosures Use Case Rssboard org Retrieved 3 October 2023 RSS Best Practices Profile Rssboard org Retrieved 1 October 2017 External links editThe lt enclosure gt tag in the RSS 2 0 specification mod enclosure Enclosures in RSS 1 x Enclosure intended use case nbsp This article about podcasting is a stub You can help Wikipedia by expanding it vte Retrieved from https en wikipedia org w index php title RSS enclosure amp oldid 1179292933, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.