RSS <กล่องใส่>องค์ประกอบ
❮ ข้อมูลอ้างอิง RSS ที่สมบูรณ์
ความหมายและการใช้งาน
องค์ประกอบ <enclosure> ช่วยให้สามารถรวมไฟล์สื่อกับรายการได้
คุณลักษณะ
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 |
ตัวอย่าง
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title>W3Schools Home Page</title>
<link>https://www.w3schools.com</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>https://www.w3schools.com/xml/xml_rss.asp</link>
<description>New RSS tutorial on W3Schools</description>
<enclosure url="https://www.w3schools.com/media/3d.wmv"
length="78645" type="video/wmv" />
</item>
</channel>
</rss>
❮ ข้อมูลอ้างอิง RSS ที่สมบูรณ์