XML technologies / RSS & Atom / Reference: RSS 1.0 elements / rdf:RDF

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

Meaning

Document element (root element) of an RSS 1.0 document.

Schema

element rdf:RDF { RDFContent }
RDFContent =
  element channel { channelContent }
  & element image { imageContent }?
  & element item { itemContent }+ 

Ancestors

None

Descendants/content

channel (required), item (required, one or more occurrences), image (optional)

Attributes

Name

Values

Meaning

required

xmlns
(also in the form
xmlns:rdf,
xmlns:rss, xmlns:dc
etc.)

"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
(URI of the RDF namespace),
"http://purl.org/rss/1.0/"
(URI of the RSS namespace)

Specifies namespace URIs
according to the W3C Recommendation
XML Namespaces

Required: the
namespace declaration
for the element rdf:RDF;
other namespaces
may be declared in the
following elements
.

Example

<rdf:RDF  xmlns="http://purl.org/rss/1.0/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
   <channel rdf:about="http://www.celawi.eu/webtrends">
   ...
   </channel>
   <item rdf:about="http://www.celawi.eu/webtrends/20040415_01">
   ...
   </item>
</rdf:RDF> 

Notes

None

Equivalents

RSS 1.1

RSS 2.0

Atom

rss:Channel

rss

atom:feed

   

 

 

 

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

back to top