RSS 인클로저 요소
정의 및 사용
<인클로저> 요소는 미디어 파일이 프로젝트에 포함 할 수 있습니다.
재산
재산 | 기술 |
---|---|
길이 | 필요합니다. (바이트) 미디어 파일의 길이를 정의한다. |
유형 | 필요합니다. 미디어 파일의 유형을 정의한다. |
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 전체 참조 설명서