Element RSS Kategoria
Definicja i Wykorzystanie
<Kategoria> element określa jedną lub więcej kategorii lub element kanału należy. <Kategoria> element może również określić pozycję hierarchii katalogów (wartość <kategoria> element jest ukośnik rozdzielany ciąg).
<Kategoria> Element pozwala katalog stron agregatory RSS / Artykuły kategoryzować grupy (na podstawie katalogu stron / artykułów zgrupowanych).
nieruchomość
etykieta | opis |
---|---|
domena | Opcjonalne. String lub URL, identyfikuje klasyfikacji taksonomii. Przykłady: <Kategoria domain = "syndic8"> IT </ category> |
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>
<category>IT/Internet/Web development</category>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3cschool.cc/rss</link>
<description>New RSS tutorial on W3CSchool</description>
<category>News</category>
<category>Tutorial</category>
</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>
<category>IT/Internet/Web development</category>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3cschool.cc/rss</link>
<description>New RSS tutorial on W3CSchool</description>
<category>News</category>
<category>Tutorial</category>
</item>
</channel>
</rss>
Spróbuj »
RSS kompletna instrukcja referencyjna