Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

RSS enclosure Element

RSS Element


RSS Reference Manual Complete RSS Reference Manual


Definition and Usage

element allows a media file to be included in an item.


property

property Description
length Required. Defines the length of the media file (in bytes).
type Required. Defines the type of the media file.
url Required. Defines the URL pointing to the media file.

Example

<

rss

version

=

"

2.0

"

<

channel

<

title

Runoob Tutorial Home

title

<

link

http://www.runoob.com

link

<

description

Free Programming Tutorials

description

<

item

<

title

RSS Tutorial

title

<

link

http://www.runoob.com/rss

link

<

description

Runoob Tutorial Rss Tutorial

description

<

enclosure

url

=

"

http://www.runoob.com.cc/try/demo_source/movie.mp4

"

length

=

"

78645

"

type

=

"

video/mp4

"

/>

item

channel

rss

Try it »


RSS Reference Manual Complete RSS Reference Manual