XML technologies / RSS & Atom / Reference: RSS 1.0 elements / rss:image

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

Meaning

Represents an image illustrating a feed; must occur both at the top level under rdf:RDF and inside rss:channel.

Schema

element image { imageContent }
imageContent =
  element title { xsd:string }
  & element link { xsd:anyURI }
  & element url { xsd:anyURI }
  & attribute rdf:about { xsd:anyURI }

element image {
  attribute rdf:resource { xsd:anyURI }
}? 

Ancestors

rss:channel, rdf:RDF

Descendants/content

rss:link, rss:title, rss:url if the element is a descendant of rdf:RDF; if the element is a descendant of rss:channel it remains empty; the resource it references is then specified as the value of the attribute rdf:resource.

Attributes

Name

Values

Meaning

required

rdf:resource

URI

Image URI

required as a descendant of
rss:channel if an image is specified

rdf:about

URI

Image URI

required if rss:image is a descendant of rdf:RDF.

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">
      <image rdf:resource="http://www.celawi.eu/logo.gif"/>
   </channel>
   ...
   <image rdf:about="http://www.celawi.eu/logo.gif">
      <url>http://www.celawi.eu/logo.gif </url>
      <link>http://www.celawi.eu/webtrends.html </link>
      <title>Webtrebds-Logo</title>
   </image>
<rdf:RDF> 

Notes

The element has different content models depending on whether it occurs in the table of contents of a channel or is the container for the image’s properties.

Equivalents

RSS 1.1

RSS 2.0

Atom

rss:image

image

atom:logo, atom:icon

   

 

 

 

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

back to top