RSS <category> Element
Complete RSS Reference
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).
The <category> element makes it possible for RSS aggregators to group
sites/articles based on category.
Attributes
Tag |
Description |
domain |
Optional. A string or URL that identifies a
categorization taxonomy. Example:
<category domain="syndic8">IT</category> |
Example
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="2.0">
<channel>
<title>W3Schools Home Page</title>
<link>http://www.w3schools.com</link>
<description>Free web building tutorials</description>
<item>
<title>RSS Tutorial</title>
<link>http://www.w3schools.com/rss</link>
<description>New RSS tutorial on W3Schools</description>
</item>
</channel>
</rss>
|
Try-It-Yourself Demos
The <category>
element
How to use the <category> element.
Complete RSS Reference
Learn XML with <oXygen/> XML Editor - Free Trial!
 |
|
oXygen helps you learn to define,
edit, validate and transform XML documents. Supported technologies include XML Schema,
DTD, Relax NG, XSLT, XPath, XQuery, CSS.
Understand in no time how XSLT and XQuery work by using the intuitive oXygen debugger!
Do you have any XML related questions? Get free answers from the oXygen
XML forum
and from the video
demonstrations.
Download a FREE 30-day trial today!
|
|