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
Stylus Studio® 2010 XML Enterprise Suite raises the bar for productivity in XML development tools.
Millions of XML developers and data integration specialists turn to Stylus Studio's comprehensive and intuitive
XML toolset to tackle today's advanced XML data transformation and aggregation challenges.
|
- XML Pipeline Editor, Debugger and Code Generator
- DataDirect XML Converters
- XQuery Mapper, Editor, Debugger, and Profiler
- XSLT Mapper, Editor, Debugger, Designer, and Profiler
- Java and C# for .Net Code Generation
- XML Schema Designer With Documentation Generator
- XML Editor With Full XPath Integration
Download a free trial now
|
|