<entry> Element

The "entry" element represents an individual entry or post and contains all the metadata and data associated with the entry.

Within the Atom Syndication Format, the entry element is always found as a child to the feed element. However, in the Atom Publishing Protocol the entry element can be used as a standalone element within the context of creating and updating entries or posts.

Parent Elements

Child Elements

Example

<entry>
  <title>Atom draft-07 snapshot</title>
  <link rel="alternate" type="text/html"
   href="http://example.org/2005/04/02/atom"/>
  <link rel="enclosure" type="audio/mpeg" length="1337"
   href="http://example.org/audio/ph34r_my_podcast.mp3"/>
  <id>tag:example.org,2003:3.2397</id>
  <updated>2005-07-31T12:29:29Z</updated>
  <published>2003-12-13T08:29:29-04:00</published>
  <author>
    <name>Mark Pilgrim</name>
    <uri>http://example.org/</uri>
    <email>f8dy@example.com</email>
  </author>
  <contributor>
    <name>Sam Ruby</name>
  </contributor>
  <contributor>
    <name>Joe Gregorio</name>
  </contributor>
  <content type="xhtml" xml:lang="en"
   xml:base="http://diveintomark.org/">
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p><i>[Update: The Atom draft is finished.]</i></p>
    </div>
  </content>
</entry>
This page was last updated on 2008-08-07, 11:06.

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.