网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: RSS :: RSS < category > 元素

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

RSS < category > 元素


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-29 浏览:553 :: ::

Definition and Usage
定义和用法

The <category> element specifies one or more categories the channel or item belongs to. The <category> element can also specify the hierarchic location in a category (the value of the <category> element is then a forward-slash separated string).
<category>元素指定了包含一个或多个频道或项所属的目录。<category>元素也可以用于指定目录中不同层次的位置(<category>元素值是一个通过正斜杠分隔的字符串)。

The <category> element makes it possible for RSS aggregators to group sites/articles based on category.
<category>元素可以使RSS聚合器对站点/文章的目录进行归类群组。


Attributes
属性

标签 描述
domain

Optional. A string or URL that identifies a categorization taxonomy.

可选参数。指定一个用于确定目录分类的URL

案例:
<category domain="syndic8">IT</category>



Example
案例

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>W3pop Home Page</title>
<link>http://www.w3pop.com</link>
<description>Free web building tutorials</description>
<category>IT/Internet/Web development</category>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3pop.com/tech/school/rss</link>
<description>New RSS tutorial on W3pop</description>
<category>News</category>
<category>Tutorial</category>

</item>
</channel>
</rss>


自我演示

<category>元素
使用<category>元素的方法

评论 (0) All