RSS kandang Element
Definisi dan Penggunaan
<Lampiran> elemen memungkinkan file media termasuk dalam proyek.
milik
milik | deskripsi |
---|---|
panjangnya | Diperlukan. Mendefinisikan panjang dari file media (dalam byte). |
jenis | Diperlukan. Menentukan jenis file media. |
url | Diperlukan. Mendefinisikan URL dari file media. |
contoh
<?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>
Coba »
referensi manual lengkap RSS