XML technologies / RSS & Atom / Reference: Atom elements / atom:category

(Excerpt from "Newsfeeds with RSS and Atom" by Heinz Wittenbrink, published by Galileo Press, 2005)

Meaning

Specifies categories for the contents of the feed or entry.

Schema

atomCategory =
      element atom:category {
         atomCommonAttributes,
         attribute term { text },
         attribute scheme { atomUri }?,
         attribute label { text }?,
         undefinedContent
      } 

Ancestors

feed, entry, source

Descendants/content

None

Attributes

Common attributes

Name

Value

scheme

URI of a categorization scheme

term

Category identifier

label

human-readable category label

Example

...
<atom:entry>
   <atom:category scheme="http://technorati.com/tag/" term="technology" label="Technik"/>
   ...
</atom:entry>

Notes

For both feed and entry any number of categories can be specified.

Equivalents

RSS 2.0

RSS 1.0

RSS 1.1

category

dc:subject (Dublin Core)

dc:subject

   

 

 

 

Creative Commons license
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

back to top