RSS <enclosure> Element
Complete RSS Reference
Definition and Usage
The <enclosure> element allows a media-file to be included with
an item.
Attributes
| Attribute |
Description |
| length |
Required. Defines the length (in bytes) of the
media file |
| type |
Required. Defines the type of media file |
| url |
Required. Defines the URL to the media file |
Example
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>W3Schools Home Page</title>
<link>http://www.w3schools.com</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3schools.com/rss</link>
<description>New RSS tutorial on W3Schools</description>
<enclosure url="http://www.w3schools.com/media/3d.wmv"
length="78645" type="video/wmv" />
</item>
</channel>
</rss>
|
Try it yourself »
|
Complete RSS Reference

Whether you're new to XML or already an advanced user, the user-friendly views and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to meet your XML and Web development needs from start to finish.
New features in Version 2010!
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- XBRL validator, taxonomy editor, taxonomy wizard
- Support for Office Open XML (OOXML)
- Graphical WSDL 1.1/2.0 editor & SOAP debugger
- JSON editing & conversion
- Java, C#, C++ code generation
- 32-bit and 64-bit versions
- And much more!
Download a free trial today!
|
|
|
|