RSS ตู้ธาตุ
ความหมายและการใช้งาน
<Enclosure> องค์ประกอบที่ช่วยให้ไฟล์มีเดียรวมอยู่ในโครงการ
คุณสมบัติ
คุณสมบัติ | ลักษณะ |
---|---|
ความยาว | จำเป็นต้องใช้ กำหนดความยาวของไฟล์มีเดีย (ใน bytes) |
ชนิด | จำเป็นต้องใช้ กำหนดประเภทของไฟล์สื่อ |
URL | จำเป็นต้องใช้ กำหนด URL ของไฟล์สื่อ |
ตัวอย่าง
<?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>
ลอง»
คู่มืออ้างอิง RSS สมบูรณ์