RSS tytuł, link i opis elementów
Definicja i Wykorzystanie
<Item> definiuje kanał RSS w artykule, element ma trzy wymagane elementy podrzędne:
- <Title> - definiuje tytuł projektu (na przykład: RSS Tutorial)
- <Link> - Ultra zdefiniowane połączenie do projektu (na przykład: http: //www.w3cschool.cc/rss/)
- <Opis> - opis projektu (na przykład: w3school najnowszy poradnik RSS)
Przykłady
<?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>
</item>
<item>
<title>XML Tutorial</title>
<link>http://www.w3cschool.cc/xml</link>
<description>New XML tutorial on W3CSchool</description>
</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>
</item>
<item>
<title>XML Tutorial</title>
<link>http://www.w3cschool.cc/xml</link>
<description>New XML tutorial on W3CSchool</description>
</item>
</channel>
</rss>
Spróbuj »
RSS kompletna instrukcja referencyjna