XML technologies / RSS & Atom / Reference: RSS 2.0 elements / The element enclosure

(Excerpt from "Newsfeeds with RSS and Atom" by Heinz Wittenbrink, published by Galileo Press, 2005)

Meaning

Reference to binary data. enclose is the basis for podcasting.

Ancestors

item

Descendants/content

None

Attributes

Name

Value

Meaning

required

url

URI

Attachment address

yes

length

Number

Attachment size in bytes

yes

type

Name of a registered media type

Attachment type

yes

Example

<item>
   <enclosure url="http://triest.fh-joanneum.at/SDR25FEB.mp3" length="1024" type="audio/mpeg"/>
   ...
</item> 

Notes

It has been proposed to allow more than one element of this type per item.

Language version

RSS 0.92, 0.93, 2.0

Equivalents

RSS 1.0

RSS 1.1

Atom

enc:enclosure
(Warning: rarely supported so far!)

enc:enclosure
(Warning: rarely supported so far!)

link rel="enclosure"

   

 

 

 

Creative Commons license
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

back to top