Technologies XML / RSS & Atom / Référence : éléments Atom / atom:entry

(Extrait de « Newsfeeds avec RSS et Atom» de Heinz Wittenbrink, publié chez Galileo Press, 2005)

Signification

Conteneur de tous les contenus et données d’une entrée de flux Atom ; élément document d’un document d’entrée permettant de publier ou de modifier une entrée.

Schéma

atomEntry =
   element atom:entry {
      atomCommonAttributes,
      (atomAuthor?
       & atomCategory*
       & atomContent?
       & atomContributor*
       & atomId
       & atomLink*
       & atomPublished?
       & atomRights?
       & atomSource?
       & atomSummary?
       & atomTitle
       & atomUpdated
       & extensionElement*)
} 

Ancêtres

feed

Descendants/contenu

id, title, updated (obligatoire), content, summary (l’un de ces deux éléments doit être présent), author (obligatoire si non indiqué dans feed ), category, contributor (facultatif, répétable), link, published, rights, source (facultatif), extensions facultatives.

Attributs

Attributs communs

Exemple

<atom:entry>
   <atom:id>http://www.celawi.eu/webtrends/405 </atom:id>
   <atom:title>Mobilcom: Gewinnexplosion dank Internetgeschäft</atom:title>
   <atom:link href="http://www.celawi.eu/webtrends/405"/>
   <atom:category term="Provider"/>
   <atom:content type="text">Vor allem das Internet- und Festnetzgeschäft der Tochter Freenet tragen dazu bei, dass Mobilcom - der zweitgrößte deutsche Mobilfunk-Dienstleister - eine regelrechte Gewinnexplosion verzeichnen kann.</atom:content>
   <atom:contributor>
      <atom:name>Harry Schwitzer</atom:name>
      <atom:email>h.schwitzer@celawi.eu </atom:email>
      <atom:uri>http://www.celawi.eu/harry </atom:uri>
   </atom:contributor>
   <atom:author>
      <atom:name>Martin Röller</atom:name>
   </atom:author>
   <atom:updated>2005–02–15T08:20:00Z</atom:updated>
</atom:entry> 

Remarques

L’ordre des éléments constituant le contenu n’est pas imposé.

Équivalents

RSS 2.0

RSS 1.0

RSS 1.1

item

rss:item

rss:item

   

 

 

 

Licence Creative Commons
Cette œuvre est mise à disposition selon une licence Creative Commons Attribution - Partage dans les Mêmes Conditions 3.0 non transposé.

haut de page