RSS boîtier Element
Définition et utilisation
<Enclosure> permet à des fichiers multimédias inclus dans le projet.
propriété
propriété | description |
---|---|
longueur | Obligatoire. Définit la longueur du fichier multimédia (en octets). |
type | Obligatoire. Définir le type de fichier multimédia. |
url | Obligatoire. Définit l'URL du fichier multimédia. |
Exemples
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>W3CSchool Home Page</title>
<link>http://www.w3cschool.cc</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3cschool.cc/rss</link>
<description>New RSS tutorial on W3CSchool</description>
<enclosure url="http://www.w3cschool.cc/media/3d.wmv"
length="78645" type="video/wmv" />
</item>
</channel>
</rss>
<rss version="2.0">
<channel>
<title>W3CSchool Home Page</title>
<link>http://www.w3cschool.cc</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3cschool.cc/rss</link>
<description>New RSS tutorial on W3CSchool</description>
<enclosure url="http://www.w3cschool.cc/media/3d.wmv"
length="78645" type="video/wmv" />
</item>
</channel>
</rss>
Essayez »
RSS manuel de référence complet