RSS <enclosure> 요소
정의와 사용법
<enclosure> 요소는 프로젝트에 미디어 파일을 포함할 수 있습니다.
속성
속성 | 설명 |
---|---|
length | 필수. 미디어 파일의 길이(바이트로)를 정의합니다. |
type | 필수. 미디어 파일의 유형을 정의합니다. |
url | 필수. 이 미디어 파일을 가리키는 URL을 정의합니다. |
예제
<?xml version="1.0" encoding="ISO-8859-1" ?> <rss version="2.0"> <channel> <title>CodeW3C.com Home Page</title> <link>http://www.codew3c.com</link> <description>Free web building tutorials</description> <item> <title>RSS Tutorial</title> <link>http://www.codew3c.com/rss</link> <description>New RSS tutorial on CodeW3C.com</description> <enclosure url="http://www.codew3c.com/media/movie.wmv" length="856329" type="video/wmv" /> </item> </channel> </rss>